Group Project - Switching from master to main Edit

Published on May 22, 2026 by rwaffen.

Hi @everyone 👋, we have a large number of repositories, and we want to establish a clear and consistent standard for how we name our default branches across the organization.

The reason for this change is to align with current defaults on GitHub, upcoming changes to Git itself, as well as standardizing language, improving clarity, and reducing confusion of having different repositories with different defaults.

Since this change can involve a fair amount of work, we’d like to approach it collaboratively and involve everyone in the process.

If you touch any repository and got some extra time to spend, please switch the default branch to main and update your local clones accordingly.

If you are a repository maintainer you can switch the default branch in the repository settings on GitHub. See the GitHub documentation.

The commands to update your local clone are as follows:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Thx for your help! If you have any questions, feel free to ask.

Cheers, @rwaffen