Is there a flag to pass to git when doing a clone, say don't clone the .git directory? If not, how about a flag to delete the .git directory after the clone?
git
.git
Use
git clone --depth=1 --branch=master git://someserver/somerepo dirformynewrepo rm -rf ./dirformynewrepo/.git
dirformynewrepo
1.4m articles
1.4m replys
5 comments
57.0k users