Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,649
Community Members
 
Community Events
165
Community Groups

url didn't update after account name was changed

Edited

After I updated Bitbucket account name I still have old name in url,

and if manually  print new instead  it says that repository doesn't exist

.Is it take some time to implement those changes ? 

1 answer

0 votes

Hi @Oleh Mazur and welcome to the community!

If I understand correctly, you are referring to the URL of one of your repositories?

This URL uses the workspace id of the workspace where the repo belongs.

If you change the username of your Bitbucket Cloud account from this page https://bitbucket.org/account/settings/, the URL of the repositories will not get affected.

You will need to change the workspace id of the workspace where this repo belongs:

1. Log in to https://bitbucket.org/
2. Go to your avatar > All workspaces
3. Select the workspace whose id you want to change
4. Select Settings from the sidebar on the left
5. In there, you will see the Workspace ID of that workspace, and also a link to change it

Please note that changing the workspace id will change the URL of all repos that belong to this workspace.


If you have a local clone of this repo already in your machine, you will need to change the remote URL in your clone to use the new workspace id.

Running the following command will show the remote URL of the repo.

git remote -v

If you use HTTPS the output will look similar to the following:

origin https://BitbcuketUsername@bitbucket.org/OLD_WORKSPACE_ID/REPO.git (fetch)
origin https://BitbcuketUsername@bitbucket.org/OLD_WORKSPACE_ID/REPO.git (push)

If you use SSH the output will look like this:

origin git@bitbucket.org:OLD_WORKSPACE_ID/REPO.git (fetch)
origin git@bitbucket.org:OLD_WORKSPACE_ID/REPO.git (push)

You can change that URL with the git remote set-url command.

For HTTPS:

git remote set-url origin https://BitbcuketUsername@bitbucket.org/NEW_WORKSPACE_ID/REPO.git

For SSH:

git remote set-url origin git@bitbucket.org:NEW_WORKSPACE_ID/REPO.git

If you have any questions or face any issues, please feel free to let me know.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,158 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you