Skip to content

Instantly share code, notes, and snippets.

@jakeklassen
Last active January 7, 2016 16:32
Show Gist options
  • Save jakeklassen/edc3a780dcc89189802e to your computer and use it in GitHub Desktop.
Save jakeklassen/edc3a780dcc89189802e to your computer and use it in GitHub Desktop.
Clone repo into non-empty folder
# http://stackoverflow.com/questions/9864728/how-to-get-git-to-clone-into-current-directory
git clone your-repo tmp && mv tmp/.git . && rm -rf tmp && git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment