Github will be switching to
main naming scheme for the default branch of new projects, at some point this summer.
mainis the most popular replacement for
masterthat we’re seeing across GitHub. We like it because it’s short, it keeps your muscle memory intact, and it translates well across most languages. We’re using
mainfor our newly-created repositories and for the repositories we’re moving now, like dependabot-core.
With gitlab 13.2 we are able to change the default value of the branch name as well in gitlab.gnome.org. I am proposing we switch it to
main following the other popular git hosting services.
I think the consensus of the other discourse thread and the d-d-l thread is to move away from the
master term for new things and investigate how feasible migration for existing repos is.
The only issue I can think of with changing the default is the weird limbo where some projects will use
master and others
main for the default branch, but given that Github and Gitlab have decided to go on with the same change its not something that we are going to avoid anyway.