方法1: 操作都在当前git库的目录中: git remote add otherRemoteName otherRemoteURL git push otherRemoteName refs/remotes/origin/:refs/heads/ 方法2 : git clone --bare [oldUrl.git] cd [oldLib.git] git push --mirror newUrl