Bharat Bhushan
Bharat Bhushan

Reputation: 2097

change username without changing the old repository address ?

I want to change my bitbucket username. Bitbucket allow me to change the username as many time i want to change but with a warning

Renaming this account will change the URLs of 3 repository

I am working with a team.changing the name create problem for others team members or not ?. and is their any alternate to solve this?

Upvotes: 0

Views: 93

Answers (1)

poke
poke

Reputation: 387707

There is no alternative to this. Your repositories are located at bitbucket.org/<username>/<repositoryname>. Changing the username obviously changes the URL for each repository.

If you want to keep the old URLs, you cannot rename your account.

Having new repository URLs shouldn’t be a too difficult problem though, and you can easily communicate this in your team. The fix is rather simple too:

git remote set-url origin [email protected]/<newusername>/<repositoryname>

Upvotes: 4

Related Questions