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

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

结果同步时报错。

先在本地查看一下

git remote -v

果然是工程的老名字

origin [email protected]:XXX/oldname.git (fetch)
origin [email protected]: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 [email protected]:XXX/NewName.git

OK!

猜你喜欢

转载自www.cnblogs.com/xuanmanstein/p/9969661.html