更改本地项目的 bitbucket 存储库名称
Change bitbucket repository name on local project
我正在使用 Android Studio 和 bitbucket。我更改了存储库的名称,现在当我尝试推送时,我收到消息 Fatal error, repository not found。
如何更新我的 Android Studio 项目上的新存储库名称以正确推送?
提前致谢。
更新您的 git 遥控器,更改存储库 url:https://help.github.com/articles/renaming-a-remote/
看我的例子:
转到终端,
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 文件夹中的配置文件。那解决了问题。
我正在使用 Android Studio 和 bitbucket。我更改了存储库的名称,现在当我尝试推送时,我收到消息 Fatal error, repository not found。 如何更新我的 Android Studio 项目上的新存储库名称以正确推送? 提前致谢。
更新您的 git 遥控器,更改存储库 url:https://help.github.com/articles/renaming-a-remote/
看我的例子: 转到终端,
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 文件夹中的配置文件。那解决了问题。