Skip to main content

Empathy, and renaming my ‘master’ branch to ‘main’

First posted in Development and Git; updated 25th February 2021

Language is important. I’ve noticed a movement towards renaming the master Git branch as the term is racially charged.

I shouldn’t have been surprised to see some push-back from some quarters, but, even if I couldn’t see the problem (I absolutely can), there are zero downsides. Well, unless you count a minute’s worth of configuration a downside!

My position of privilege as a white person means I’m unaware of some issues people of colour face, but when I learn something I didn’t know I’m always glad to make a positive change, big or small.

GitHub are now using main as the default branch name, which I agree is a good alternative to master. Unlike primary, root and default, main starts with the same letters as master, so there’s no need to retrain my m, a, (tab) muscle memory to autocomplete the branch name. So I’m following suit and changing the name of the master branch in all of my Git repositories to main.

Most importantly, I’ll keep talking, reading, listening and seeking to understand other points of view; learning and sharing as I go.

Accessibility in your inbox

I send an accessibility-centric newsletter on the last day of every month, containing:

  • A roundup of the articles I’ve posted
  • A hot pick from my archives
  • Some interesting posts from around the web

I don’t collect any data on when, where or if people open the emails I send them. Your email will only be used to send you newsletters and will never be passed on. You can unsubscribe at any time.

More posts

Here are a couple more posts for you to enjoy. If that’s not enough, have a look at the full list.

  1. Upgrading from iPhone 13 mini to 16 Pro

    I get a new phone every 3-ish years, give mine to my wife, and now she gives hers to our daughter. I got a 16 Pro this year! Here’s the skinny.

  2. Apple, you’re doing the Dynamic Island wrong

    I love the idea of Dynamic Island; making lemons into lemonade and all that. But, in my opinion, Apple have got the fundamentals mixed up.