bitbucket工程改名导致 repository does not exist. fatal: Could not read from remote repository.

在bitbucket上把工程改名了,就忘了。

结果同步时报错。

先在本地查看一下

git remote -v

果然是工程的老名字

origin git@bitbucket.org:XXX/oldname.git (fetch)
origin git@bitbucket.org:XXX/oldname.git (push)

参考https://stackoverflow.com/questions/24875756/conq-repository-does-not-exist-fatal-could-not-read-from-remote-repository

git remote set-url origin git@bitbucket.org:XXX/NewName.git

然后

git push -u origin master

OK!

 

    原文作者:永远的幻想
    原文地址: https://www.cnblogs.com/xuanmanstein/p/9969661.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞