Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

url didn't update after account name was changed

Oleh Mazur
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2022

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
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2022

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
AUG Leaders

Atlassian Community Events