-
-
Save bran921007/3ef0af3fea8e0f6ba7d4c7ca69375f52 to your computer and use it in GitHub Desktop.
How to do a Git clone without the .git 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
// Clone the repo | |
git clone --depth=1 git://someserver/somerepo dirformynewrepo | |
// Remove the .git directory | |
rm -rf !$/.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment