Inclusion in Software Development: Changing Branch Terminology
Inclusion in software development is important. Changing the name of the "master" branch to "main" is a simple, positive step towards creating a more inclusive environment in software development.
As you know, the default branch of a repository is usually called the "master" branch. This has very serious connotations, and has made me uncomfortable using this terminology. It just makes more sense to call it the "default" branch or the "main" branch. There is really no reason to keep calling it the "master" branch any more.
So, from now on, all my repositories will have "main" be the default branch. Instances will be "Primary" and "Secondary" instead of "master" and "slave".
No more "blacklisting" and "whitelisting". Instead this will be "allow list" and "deny list"
It has been almost a year since Dan Williams posted his message on inclusive terminology on the Linux Kernel Mailing List. By the time the anniversary of that message comes along, I will have all my repos using the new naming convention.
It really is quite simple!
Skip the Merge Request, go to Gitlab or Github and change the default branch to "main" in Settings. Once that is done, delete the "master" branch.
If you are using CI, then you might have to modify some YAML files. Same might apply if you are using hard coded settings in third-party apps.