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

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

问题描述

我不小心将本地主服务器推送到了gitlab上名为origin的分支,现在它是默认分支.是否可以重命名此分支或将新的master分支设置为master?

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?

推荐答案

,您必须使用以下命令: 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天全站免登陆