News for hackers. Stuff that matters.

Why renaming your master branch is a BAD IDEA in Git

Yes, master means your ‘owner’ in regards to slavery... But seriously though? You and I both know that the master branch is literally the ‘main’ branch, and anyway, if there is a master branch, what’s the ‘slave’ branch then?

Here’s are some links to get you started:

https://dev.to/dandv/8-problems-with-replacing-master-in-git-2hck

https://github.com/git-for-windows/git/issues/2674

Do YOU think renaming your master branch is a good idea? Share your thoughts in the comments

( 3 comments | 6 points | on HN )
Re:Why renaming your master branch is a BAD IDEA in Git by maherndez_992 on Wednesday June 17, 2020 @04:40AM (#23549213)
Words meaning depend on context. A Zen "Master" does not imply a Zen "Slave", for example. People should look at context first before applying judgement on the meaning of words. That is all I am going to say.
Re:Why renaming your master branch is a BAD IDEA in Git by rvz on Wednesday June 17, 2020 @05:54AM (#23549637)
Well I'll look forward to those people asking Mr Torvalds on the LKML to rename all master/slave references in the kernel.

If you're maintaining decades old hardware and using specs that have that terminology, there is a very high chance that he will reject such patches since even a name change will break other software.

And all that effort for what? Making the delicate sunflowers who find this 'offensive on behalf of others' happy? How does one person who is 'offended' by this speak for everyone else?

Ask yourself this, Do you really think it is worth it?

Re:Why renaming your master branch is a BAD IDEA in Git by tomtompl on Wednesday June 17, 2020 @04:34AM (#23549176)
You're trying to discuss with people who think such idiocies like "all white people are racist" and so on.

Good article but it'll get you nowhere, sadly.