Created
January 25, 2014 18:40
-
-
Save damondouglas/8621285 to your computer and use it in GitHub Desktop.
Git clone into non-empty directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --no-checkout [email protected]:<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
Courtesy: http://stackoverflow.com/questions/2411031/how-do-i-clone-into-a-non-empty-directory