在 gitlab 中更改默认分支 [英] Change Default branch in gitlab

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

问题描述

我不小心将我的本地 master 推送到了 gitlab 上一个名为 origin 的分支,现在它是默认的.有没有办法重命名这个分支或将新的主分支设置为主分支?

I accidentally pushed my local master to a branch called origin on gitlab and now it is the default. Is there a way to rename this branch or set a new master branch to master?

推荐答案

在 GitLab 企业版 12.2.0-pre 中,您必须使用以下内容:SettingRepositoryDefault Branch(展开)并在此处更改默认分支

in the GitLab Enterprise Edition 12.2.0-pre you have to use following: SettingRepositoryDefault Branch ( expand it) and change the default branch Here

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

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