简体   繁体   中英

Change bitbucket repository name on local project

Im using Android Studio with bitbucket. 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? 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. That solved the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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