如何在BitBucket中更改主分支? [英] How to change the main branch in BitBucket?

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

问题描述

我有两个分支的关于bitbucket的仓库.第一个分支是具有伪造内容的master,然后我有另一个名为trunk的具有正确内容的东西.

I have a repo on bitbucket with two branches. First branch is master with a fake content, then I have another one called trunk with the correct content.

我想将主分支改为主干(实际上是主分支).我发现在回购管理中,我可以更改此操作,但是我不能.

I would like to change the main branch to trunk (actually is master). I found that in the repo adminsitration are on bitbucket web I could change this but I couldn't.

最后,我想了解是否可以通过本地存储库通过终端进行此操作.

Finally I would like to understand if is possible to do this through terminal from my local repo.

也许容易的事情是从master删除内容,并将主干合并到master和delete trunk中,但是我都不知道该怎么做.

Maybe an easy thing is to delete contents from master and merge trunk into master and the delete trunk but I neither know how to do this.

推荐答案

  1. 存储库

  1. 选择存储库
  2. 设置

  1. 主分支: master

  1. 保存存储库详细信息

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

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