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
2.1m questions
2.1m answers
60 comments
57.0k users