GitLab Will Now Default To "Main" For New Git Repositories

Written by Michael Larabel in Programming on 11 March 2021 at 08:53 AM EST. 117 Comments
PROGRAMMING
GitLab is following the same approach of GitHub and others in now using "main" as the default branch name for new Git repositories.

Following the upstream Git work that came together last year for enabling a default branch name with ease rather than just relying on "master" and going along with the broader free software ecosystem movement to remove master/slave references from the technology dictionary, GitLab is following a similar approach to GitHub, Atlassian, and others in encouraging the use of "main" as the default branch name moving forward.

In a blog post yesterday, GitLab outlined the work they've been engaged in for now having main be the default branch name for GitLab.com and self-managed users with new repositories and the default branch name for the GitLab project itself is also changing from master to main. Existing projects will not be impacted unless the code owners go ahead and change the branch name on their own.

With GitLab 14.0 due out this spring all of their "main" changes should be in place. More details on the GitLab blog.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week