Starting from next month i.e from October 1, all-new source code repositories created on GitHub will be named as “main” instead of “master”. The company is doing this to remove unnecessary references to slavery and replace them with more inclusive terms. If you use GitHub you must know what repositories mean, but for those who didn’t repositories are where users and companies store and synchronize their project’s source code.
By default, GitHub uses the term “master” for the primary version of a source code repository. Developers make copies of the “master” on their computers into which they add their own code, and then merge the changes back into the “master” repo.
“On October 1, 2020, any new repositories you create will use main as the default branch, instead of master,” the company said. Existing repositories that have “master” set as the default branch will be left as is.
“For existing repositories, renaming the default branch today causes a set of challenges,” GitHub explained in a support page published earlier this month, such as having to edit settings for pull requests and modifying security policies.
“By the end of the year, we’ll make it seamless for existing repositories to rename their default branch,” GitHub said.
“When you rename the branch, we’ll retarget your open PRs and draft releases, move your branch protection policies, and more – all automatically.”
Why GitHub made this move?
This new move of company is a part of a bigger trend in the tech community. After the brutal death of George Floyd and the Black Lives Matter protests earlier this year, tech companies wanted to show their support for the black community by abandoning non-inclusive terms such as master, slave, blacklist, and whitelist.
Companies and major open source projects like Microsoft, IBM, Twitter, Red Hat, MySQL, the Linux kernel, and OpenBSD have agreed to make changes to their technical jargon all through the 2020 summer. GitHub was one of the first companies to show support for such changes when in June its CEO revealed that they were already looking for a replacement for “master.”
Also, the Git project, which is the base software on which GitHub was built, has also announced similar plans to provide repository owners at least with the option to customize their default repository branch going forward.