The GeoServer project is changing our default branch to main.

The casual use of the words “master” and “slave” in computer software is an unnecessary reference to a painful human experience that continue to impact society.

The change is part of an industry shift made possible by the git, bitbucket, github and gitlab projects. The git command line, repository implementations, now support main as default branch setting.

To update your local repository:

git branch -m master main
git fetch upstream
git branch -u upstream/main main

To configure your local git tool so that new repositories are created with a main branch:

git config --global init.defaultBranch main