标题目录 1 下载仓库镜像到本地2 进入本地镜像仓库3 将仓库中的旧的服务端地址更改为新仓库地址4 将修改后的Git镜像仓库推送到新的仓库 1 下载仓库镜像到本地 git clone --mirror xxx/xxx/old.git(旧库地址) 2 进入本地镜像仓库 cd oldUrl.git (旧库名称) 3 将仓库中的旧的服务端地址更改为新仓库地址 git remote set-url --push origin xxx/xxx/new.git(新库地址) 4 将修改后的Git镜像仓库推送到新的仓库 git push --mirror 再下载新仓库就能看到旧的仓库的提交历史记录了