Git:在bitbucket中更改名称后设置存储库

问题描述 投票:0回答:2

我使用bitbucket设置界面更改了存储库的名称,

但现在我不能从命令行推出

remote: Repository tdkdev/tdkwebapp not found
fatal: repository 'https://[email protected]/tdkdev/tdkwebapp.git/' not found
git bitbucket bitbucket-server
2个回答
0
投票

你必须更新上游的原点:

git push --set-upstream origin tdkdev/tdkwebapp

0
投票

您需要更新origin在每个repo副本中指向的位置:

git remote set-url origin https://[email protected]/tdkdev/new-location.git

© www.soinside.com 2019 - 2024. All rights reserved.