Git Master Branch Debate

Discussions center on whether Git's 'master' branch should be renamed to 'main' due to perceived associations with slavery and master/slave terminology, with most arguing it refers to a 'master copy' without offensive connotations.

➡️ Stable 0.6x Open Source
2,079
Comments
18
Years Active
5
Top Authors
#6329
Topic ID

Activity Over Time

2009
2
2010
2
2011
2
2012
4
2013
23
2014
32
2015
31
2016
42
2017
46
2018
117
2019
17
2020
831
2021
406
2022
189
2023
85
2024
80
2025
169
2026
1

Keywords

IT HA IMHO ycombinator.com ANY snopes.com B12 PC etymonline.com IDE master slave slavery git word branch branches offensive degree context

Sample Comments

aeonsky Jun 15, 2020 View on HN

Git's use of master has nothing to do with the master/slave idea. The word master been a word longer than it has been associated with slavery. Not every use of master is offensive/rooted in slavery/racism.

sudhirj Jun 15, 2020 View on HN

The 'master' branch uses the word the same way an audio recording does. There isn't a corresponding slave.The word does come up in database replicas, which are often called master/slave. I can see a clear case where that would be offensive.Renaming the master branch might be throwing the baby out with the bathwater, but it's just easier to do that right now, and it's a small price to pay.

skocznymroczny Jul 12, 2020 View on HN

"master" in Git doesn't have a relationship to slavery and yet it's being changed in repositories around the world.

romanoderoma Jul 28, 2020 View on HN

IMHO the only problem is what people wanna see in words.master/slave has been with us since forever (https://news.ycombinator.com/item?id=23969906) and describes a relationship between two entities where one is the controller and the other is controlled, in many religions (including the most popular one) there is still a master God (or more than one) and believers are slave to God (wi

acdha Jul 12, 2020 View on HN

Master as in “master’s degree” is from a Latin word meaning teacher, and it’s the same root for mastery. I think most of the concern about tech usage comes from introducing the term “slave”, either directly in a pair or, as with Git, deriving from that usage. It’s that specific pairing along with the technical inaccuracy which makes master/slave considerably more likely to offend, in my opinion. If someone came to me and said, however, that they didn’t like the term and wanted to change it

pims Jun 15, 2020 View on HN

In the context of Git, "master" is not used in the sense of a master/slave relationship but as a master copy. Are you hoping for a blanket ban of the word "master" regardless of the context?

ATsch Jun 13, 2020 View on HN

Master has multiple meanings, not just slave master. As in mastery, master tape, master craftsman. In git, there are no "slave" branches, so "master" does not evoke slavery.

fermienrico Jul 28, 2020 View on HN

Are we so sensitive to racism that the word "master" is offensive? There is a task to change the default branch to "main".Note: there is no "slave" branch.Intent matters, not the literal meaning of the word taken a specific orthogonal context. Not a single person in the millions of developers ever had a perverse notion of what master branch means.

sh461 Aug 27, 2020 View on HN

It makes some sense to remove the term slave since it's a direct reference to slavery and there are a bunch of other terms that you can use which won't be offensive and will also be more descriptive and professional. Master on the other hand has multiple different uses and meanings most of which have nothing to do with slavery. Changing the naming of git branches seems like a massive overreaction, doesn't achieve anything substantial and it also sets a strange precedent in which o

draw_down Jun 16, 2020 View on HN

I have never seen a “slave” branch in my life. “master” does not only refer to master/slave relations. I’m fine with changing this but it is ever so slightly silly.