Change Default branch in gitlab

Jeff picture Jeff · Jun 22, 2015 · Viewed 139k times · Source

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?

Answer

Mason picture Mason · Jul 29, 2016

In 8.0+ it looks like this was moved into the project. If you open your project and go to the gear icon on the right, then "Edit Project" you can set the default branch for the project.