📣 We're Hiring!

Migrate default repo branch names from 'master' to 'main'?

Although statistics to back this suggestion up would help, ‘main’ seems to increasingly be the preferred default branch name for git repos; GitHub made it their default for newly-created repositories last year[1], GitLab did the same recently[2], and the git project is working towards making it their default too (as mentioned in the GitLab post).

It wouldn’t be completely without impact; repository mirroring and other infrastructure that relies on the existing default branch name would be affected, so advance communication and careful monitoring would help make for a smooth transition.

[1] - https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/

[2] - https://about.gitlab.com/blog/2021/03/10/new-git-default-branch-name/

I understand that there is a new default, but I don’t see a reason to change existing repos. And I see many reasons not to… changing things always tends to break stuff :smiley:

2 Likes