在GitHub中重命名的存储库出错:“远程:此存储库已移动.请使用新位置“ [英] Error with renamed repo in GitHub: "remote: This repository moved. Please use the new location"
本文介绍了在GitHub中重命名的存储库出错:“远程:此存储库已移动.请使用新位置“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将更新从本地实例推送到GitHub上的远程主服务器时,我收到此通知:
I am receiving this notice when I push updates from my local instance to remote master on GitHub:
远程:此存储库已移动.请使用新位置[新位置]
有没有办法解决这个问题?
Is there a way to fix this?
推荐答案
简单的方法是:
git remote set-url origin [updated link url https://........git]
或者,如果您喜欢它的长途旅行,则:
Alternatively, if you like the long way it is:
git remote rm origin
git remote add origin [updated link]
更改遥控器的URL GitHub文档进一步介绍了细节.
Changing a remote's URL GitHub documentation goes into further detail.
这篇关于在GitHub中重命名的存储库出错:“远程:此存储库已移动.请使用新位置“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文