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 di
Use
git clone --depth=1 --branch=master git://someserver/somerepo dirformynewrepo
rm -rf ./dirformynewrepo/.git
dirformynewrepo not a Git repository any more.