Renaming git default branch to trunk


GitHub’s change of master to main was a decent, if still somewhat hollow gesture. But I wondered why they couldn’t have defaulted to trunk like svn, given it makes more semantic sense with branches.

Scott Hanselman offers one potential reason:

NOTE: Changing the default branch to “main” also has the benefit of starting with “ma” so that autocomplete <TAB> muscle memory still works. Another great option for your main github branch is “latest.” The goal is to just be unambiguous.

This is probably true if you’re used to git. I’m more familiar with subversion, so being able to keep trunk works better for the same reason.

Author bio and support


Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!