Warm tip: This article is reproduced from serverfault.com, please click

How to change the development branch in BitBucket?

发布于 2020-12-01 21:12:29

How do I change the development branch for my BitBucket repository? Right now my master branch is labeled as both the main and the development branch.

enter image description here

This is a near duplicate of this question: How to change the main branch in BitBucket? however, I couldn't find anything telling me how to change the label for the development label and since it is different enough, I thought it warranted its own post for anyone in the future looking for this answer. (the top answer there is pretty clear so I copied the format he used)

Questioner
Jeremy Bailey
Viewed
1
10.2k 2021-03-15 05:57:19
  1. Repositories

enter image description here

  1. Select repository
  2. Click Repository settings (bottom of menu)

enter image description here

  1. In the menu under WORKFLOW select Branching model

enter image description here

  1. Should see a screen that looks like this at the top

enter image description here

  1. Click the dropdown menu under Development branch and change it to Use specific branch. After that you should be able to click the dropdown menu next to it and change it to whatever branch you want

enter image description here

  1. Make sure to hit save at the bottom

enter image description here

  1. After saving it might take like 30 seconds but when you go back to your branches they should now have the DEVELOPMENT label changed to the branch you specified

enter image description here

I do not know how to do this from the terminal.