You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.