I renamed all my master branches to main, because that is what a lot of the git systems do nowadays.
But I cannot find any way to set the default name for new repositories. I will always be master. So first thing I have to do is going through the rename process again…
For self-managed instances this can be configured by an administrator: Branches | GitLab
Admin Area > Settings > Repository
Adjust Default initial branch name
Hmm… so not in the cloud version.
What I can do, though, is create a group ‘my default group’. Then I can set the initial branch name there, and create all my new projects in that group.
Would that work?
EDIT: yes, that works. Just tried it.