Skip to content

Instantly share code, notes, and snippets.

@damondouglas
Created January 25, 2014 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save damondouglas/8621285 to your computer and use it in GitHub Desktop.
Save damondouglas/8621285 to your computer and use it in GitHub Desktop.
Git clone into non-empty directory
git clone --no-checkout git@github.com:<path>.git tmp
mv tmp/.git .
rm -rf tmp
git reset --hard HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment