当我将更新从我的本地实例推送到 GitHub 上的远程主机时,我收到此通知:
remote: This repository moved. Please use the new location [new location]
有办法解决这个问题吗?
最佳答案
简单的方法是:
git remote set-url origin [updated link url https://........git]
或者,如果您喜欢长途旅行:
git remote rm origin
git remote add origin [updated link]
Changing a remote's URL GitHub 文档有更详细的介绍。
关于git - GitHub : "remote: This repository moved. Please use the new location" 中重命名的 repo 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30443333/