git更换远程仓库从原地址克隆一份裸版本库git clone --bare 迁移之前的地址在新的服务器建立一个新的仓库,主要不要勾选Initialize repository with a README。删除现在的地址,换成新仓库的地址 git remote set-url --push origin 新的仓库地址以镜像推送的方式上传到新的仓库git push --mirror Last modification:May 8, 2019 © Allow specification reprint Support Appreciate the author AliPayWeChat Like If you think my article is useful to you, please feel free to appreciate