Keep "master" as default branch on Gitlab 14

My company needs to keep master as default branch inplace of the new main.

Does exist a setting to accomplish that goal?

Thank you so much!

Solution found!

1 Like

You should be able to set this in the repository settings of the server, on our instance (v 13 still) it’s located

https://{instance}/admin/application_settings/repository

HTH

1 Like

Unfortunately here Application settings API | GitLab I cannot find the required setting.

Could you help me further?

Sorry, we don’t use the API here…

Solution found, the field to provided to the settings API is default_branch_name.

1 Like