如何在BitBucket中更改开发分支? [英] How to change the development branch in BitBucket?

查看:46
本文介绍了如何在BitBucket中更改开发分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改BitBucket存储库的开发分支?现在,我的 master 分支被标记为 main development 分支.

这几乎是该问题的重复:

  1. 选择存储库
  2. 单击存储库设置"(菜单底部)

  1. 在工作流程"下的菜单中,选择"<代码>分支模型

  1. 应该在顶部看到一个类似这样的屏幕

  1. 点击"开发分支"下的下拉菜单,然后将其更改为"使用特定分支".之后,您应该可以单击其旁边的下拉菜单,并将其更改为所需的任何分支

  1. 确保点击底部的保存

  1. 保存后可能需要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)

解决方案

  1. Repositories

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

  1. In the menu under WORKFLOW select Branching model

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

  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

  1. Make sure to hit save at the bottom

  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

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

这篇关于如何在BitBucket中更改开发分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆