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.
Under your repository name, click Settings. Under the Repository Name heading, type the new name of your repository. Click Rename.
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.
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.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With