Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the default branch in Gitlab?

Tags:

git

gitlab

I wanted to change the default branch in git repository hosted on Gitlab.

current default is v0.1, wanted to change to master.

v0.1 was the first branch created in repo on init.

How can I achieve this?

like image 485
Hard Developer Avatar asked Feb 07 '23 15:02

Hard Developer


1 Answers

Go to the project settings (link: edit project, depending on the version this is hidden on the upper right behind the sandwich link), there you can change the default branch.

like image 117
MrTux Avatar answered Feb 09 '23 12:02

MrTux