davidroyer
6/16/2018 - 4:39 AM

How to do a Git clone without the .git directory

How to do a Git clone without the .git directory

// Clone the repo
git clone --depth=1 git://someserver/somerepo dirformynewrepo
// Remove the .git directory
rm -rf !$/.git