Using the Bitbucket website you can rename a repo as follows:
- Go to the repo’s overview page, usually
https://bitbucket.org/username/oldname/overview
- Click the settings cog on the far right end of the menu row !
- Instead of 1. and 2. you can type
'r'
then'a'
for administration. - Change the name in the
Name
field. - Click
Save repository details.
Be advised that changing the name of the repo will change its URL access too. Previously the access was https://username@bitbucket.org/username/oldname.git
Now, however, the repo’s URL/Path will be https://username@bitbucket.org/username/newname.git
You can check this by going back to the Overview page, and hovering over the big blue HTTPS button. The bottom of your browser will show that it now points to https://username@bitbucket.org/username/newname.git
If you are using SourceTree you can update the remote’s URL by highlighting the local repo in SourceTree and then
- Click
Repository
- Click
Repository Settings...
- Highlight the row containing the remote branch. Usually
origin https://username@bitbucket.org/username/oldname.git
- Click
Edit
- Update the
URL/Path
field. Change ‘oldname.git’ to ‘newname.git’, leave the rest unchanged. So the full path should behttps://username@bitbucket.org/username/newname.git
- Click
OK