繁体   English   中英

在本地项目上更改bitbucket存储库名称

[英]Change bitbucket repository name on local project

我正在使用带有bitbucket的Android Studio。 我更改了存储库的名称,现在当我尝试推送时,我收到消息致命错误,找不到存储库 如何更新Android Studio Project上的新存储库名称以正确推送? 提前致谢。

看我的例子:去终端,

cd projectFolder
git remote -v (it will show previous git url)
git remote set-url origin https://username@bitbucket.org/username/newName.git
git remote -v (double check, it will show new git url)
git push (do whatever you want.)

看我的例子: 在此输入图像描述

更新您的git遥控器,更改repo网址: https//help.github.com/articles/renaming-a-remote/

我简单地更改了访问我项目的.git文件夹中的配置文件的存储库名称。 这解决了这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM