Skip to main content Accessibility Feedback

How to rename your default GitHub branch to main

Yesterday, I wrote about the importance of removing words rooted in white supremacy from tech.

One big move GitHub recently made was to change the name of the default branch from master to main. I’ve heard from some folks that the mechanics of doing this on older repositories is a bit clunky, so today I wanted to share some resources to make that easier.