git 2.31.0 (2021-03-15) master => main

Description

Git version 2.31.0 (scheduled for release March 15th, 2021) will change the default branch name in Git from master to main.

In coordination with the Git project and the broader community, GitLab will be changing the default branch name for new projects on both our Saas (GitLab.com) and self-managed offerings starting with GitLab 14.0 .

This will not affect existing projects.

For more information, see the related epic and the Git mailing list discussion

How to move from master to main

git branch -m master main
git push -u origin main
modifier gitlab-ci.yaml
update the default repository
delete the master branch