保留所有提交记录保持一样的分支 git clone --bare http://xxx.gitcd xxx.git# 以镜像的方式推送到新的仓库git push --mirror http://xxx.git