The "main" branch

In version control systems that have branching metaphors, those branches may have human-readable names. In git, the default branch is “master”, a word with associations to slavery. Many organizations have changed their default branch to another word, and in this topic we will collect notices of their changes.

I find that very interesting. :slight_smile:

As of this morning, our main repo discourse/discourse has renamed its main branch from master to main to avoid slavery references.

We’ve spent a long time slowly renaming all our branches and updating our code base to support this change. However, some things may break. Please use this topic to report any errors you encounter.

If you already have a version of discourse checked out on your computer for development you will have to rename it. Github conveniently offers the following instructions:

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

I like production for my primary branch.

1 Like