Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 588
Informatheus Avatar asked Apr 13 '16 19:04

Informatheus


People also ask

How do I rename my local repository?

Under your repository name, click Settings. Under the Repository Name heading, type the new name of your repository. Click Rename.

How do I change the project repository in Bitbucket?

From the repository you want to transfer, click Repository settings in the left menu. On the Repository details page, click Manage repository located at the top-right corner of the screen. Click Transfer repository. Enter the Workspace ID of the workspace in which you want to transfer the repository.

How do I find my Bitbucket repository name?

To determine the storage location of a repository, navigate to the repository in Bitbucket Server and select Settings. The location on disk will be displayed under Repository details. The numerical part of the path is the ID of the repository.


1 Answers

See my example: Go to terminal,

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

See my example: enter image description here

like image 67
xiaoyaoworm Avatar answered Sep 30 '22 05:09

xiaoyaoworm