You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I apparently have some branches out of sync; is there a way to rename a branch?
You would need to do the renaming locally in your repository. But before you do that, delete the branch in Bitbucket, do a fetch in your local clone to update it (if doing it from Sourcetree, make sure you check prune tracking branches, from cmd use git fetch -p). Then you can rename the branch and push it back to Bitbucket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Officially I don't see a way to rename them, but we have had to do that in some cases. What we do is basically the following
We have branch bugfix/JIRA-1 and want to rename it to bugfix/JIRA-100
All I usually do is take bugfix/JIRA-1 and create a branch off of that called bugfix/JIRA-100
At that point 1 and 100 should be identical.
I can then delete bugfix/JIRA-1.
You could do this via the bitbucket UI or command line as GErhard_Pretorius linked above. I personally like the UI in this case as it saves me the step of having to push to origin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To summarize the other answers: No, there is no way to rename. You can copy and delete, to achieve a similar effect. But if there is, say, a pull request in progress, you can't avoid losing the comments and approvals.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this seems to me to be an annoying missing feature of bitbucket!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you are doing it from visual studio, in team explorer, right click the branch and rename, one issue i had was renaming the branch to lower case (Dev -> dev), in that case i just renamed to dev1 and then to dev. Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Linux and Windows work differently with case sensitivity. While on linux you can have branch1 and Branch1, that will cause a conflict on windows. If you are a cross platform shop, you can configure bitbucket to ignore case on branch names.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.