没有.git目录的Git克隆
  可能重复: 
  如何做一个“git导出”(如“svn导出”) 
  是否有一个标志在克隆时传递给git ,比如说不克隆.git目录?  如果不是,克隆后如何删除.git目录的标志? 
使用
git clone --depth=1 --branch=master git://someserver/somerepo dirformynewrepo
rm -rf !$/.git
dirformynewrepo不再是一个Git仓库。 因为你只需要这些文件,所以你不需要把它当作一个git仓库。
rsync -rlp --exclude '.git' user@host:path/to/git/repo/ .
这只适用于本地路径和远程ssh / rsync路径,如果远程服务器只提供git://或https://访问权限,则它可能不起作用。
你可以随时做
git clone git://repo.org/fossproject.git && rm -rf fossproject/.git
