操作步骤 1) 从原地址克隆一份裸版本库,比如原本托管于 GitHub。 Shell git clone --bare git://github.com/username/project.git 1 git clone --bare git://github.com/username/project.git --bare 创建的克隆版本库都不包含工作区,直接就是版本库的内容,这样的版本库称为裸版本库。 2) 然后到新的 Git 服务器上创建一个新项目,比如 GitCafe。 3) 以镜像推送的方式上传代码到 GitCafe 服务器上。 Shell cd project.git git push --mirror git@gitcafe.com/username/newproject.git 12 cd project.gitgit push --mirror...