Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket old ssh URL doesnt change after renaming the repository

Shashank Agrawal July 5, 2019

Hi,

 

I have a repository called "abc". I could clone it with URL ssh://git@localhost:7999/jd/abc.git

 

Now i have changed the repository name "abc" to "xyz"

I can clone it with ssh://git@localhost:7999/jd/xyz.git

However, am also able to clone, push with the old URL ssh://git@localhost:7999/jd/abc.git

 

I do not want the developers to work on old URL. Any help

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2019

Hi Shashank,

I believe this is working as expected, once you rename a repository the original URL is kept as an alias.

I also think that if you want to invalidate the old URL you just need to create a new repository with the same name as the original one ("abc" in your case). This should delete the alias. Once done, delete the newly created repo again.

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events