如何在BitBucket中更改开发分支? [英] How to change the development branch in BitBucket?
本文介绍了如何在BitBucket中更改开发分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改BitBucket存储库的开发分支?现在,我的 master
分支被标记为 main
和 development
分支.
这几乎是该问题的重复:
- 选择存储库
- 单击存储库设置"(菜单底部)
- 在工作流程"下的菜单中,选择"<代码>分支模型
- 应该在顶部看到一个类似这样的屏幕
- 点击"
开发分支
"下的下拉菜单,然后将其更改为"使用特定分支
".之后,您应该可以单击其旁边的下拉菜单,并将其更改为所需的任何分支
- 确保点击底部的保存
- 保存后可能需要30秒钟,但是当您返回分支时,现在应该将
DEVELOPMENT
标签更改为您指定的分支
我不知道如何从终端上做到这一点.
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.
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)
解决方案
- Repositories
- Select repository
- Click Repository settings (bottom of menu)
- In the menu under WORKFLOW select
Branching model
- Should see a screen that looks like this at the top
- Click the dropdown menu under
Development branch
and change it toUse specific branch
. After that you should be able to click the dropdown menu next to it and change it to whatever branch you want
- Make sure to hit save at the bottom
- 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
I do not know how to do this from the terminal.
这篇关于如何在BitBucket中更改开发分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文