how to change git repo name

on my Bitbucket instance, I would like to change the name.

for example, in a repo https:  https://john_smith@bitbucket.org/john_smith/repo1.git , i would like the repo name to be something like  https://john_smith@bitbucket.org/projectnamehere/repo1.git

How do i do this?

Thanks!

1 answer

1. Go to the project's main page, e.g., https://bitbucket.org/john_smith/john_smith/
2. Follow link=`Settings` (cogwheel at bottom of left-side navbar)
3. If subpage=`Repository details` is not already selected, follow that link (at top of left-side navbar).

Rest is intelligence test :-)

Remember also to change the remotes on your local `.git`s: go to each, and do `git remote -v`, changing as necessary, with (e.g.) the sequence [ `git remote delete <old_name/> <old_path>` , `git remote add <new_name/> <new_path>` ]

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,370 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you