简体   繁体   English

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

[英]Change bitbucket repository name on local project

Im using Android Studio with bitbucket. 我正在使用带有bitbucket的Android Studio。 I changed the name of a repository and now when I try to push, I get the message Fatal error, repository not found . 我更改了存储库的名称,现在当我尝试推送时,我收到消息致命错误,找不到存储库 How do I update the new repository name on my Android Studio Project to push correctly? 如何更新Android Studio Project上的新存储库名称以正确推送? Thanks in advance. 提前致谢。

See my example: Go to terminal, 看我的例子:去终端,

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.)

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

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

I simple changed the repository name accessing the config file inside the .git folder of my project. 我简单地更改了访问我项目的.git文件夹中的配置文件的存储库名称。 That solved the problem. 这解决了这个问题。

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

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