How to Rename Your Master Branch to Main
kapwing.com
kapwing.com
- main; principal. "the apartment's master bathroom has a free-standing oval bathtub"
Because it's a master bedroom everyone understands and feels FINE that this is okay. EVEN in a master/slave hard drive setup (this adds a new meaning too) it isn't about subjugating disk drives, it's about slavishly copying another master (main, principal) disk. I'm very sorry if you're offended by words being used for very specific technology purposes but it isn't right that everyone has to conform to your way of seeing the world.
EDIT: damn, glad to see that article has been flagged and at this point I'm so happy that hacker news does not allow politics.
In short, this strategy is doomed from the beginning since it can not be won and only serves to create discontent and division.
Master dates back to 12th century latin and has numerous definitions, most of which have no connection to slavery.
This seems very much like modern slacktivism - a feel good action which doesn't benefit anybody, least of all the group it was intended to benefit.
"What branch are you on?" "I branched off the main development branch for this fix." "Like...the `main` main branch or the main branch for the feature?"
I like redis' rename of their default branch to `unstable`. Just like commits are tagged with the release numbers, the latest code that isn't yet versioned is by default 'unstable'. If the industry as a whole is going to make this change, I would prefer we choose a name that can be unambiguously referenced in conversation.
It that case, though, we would name our default branch "stable". We don't allow pushes to master unless everything has passed our full test suite. I'm not sure if it's a good or bad thing to have the development model hardcoded into the name of the default branch - I've certainly worked in long-lived repositories where we've changed the model over time.
'mastering' is an artifact of vinyl and boxed software. Now that a lot of software is continuously tested and shipped, 'master' is not the right word for those processes. Even if you're shipping on-premise software, there rarely is a single 'master' copy anymore.
https://en.wikipedia.org/wiki/Mastering_(audio)
As a side note, I've seen people try this, but there is no amount of testing that can guarantee stability. So, 'stable' feels like a false promise. Also, in the event of a bug causing downtime, _someone_ always has the ability to push directly to master and it's always possible that a fix might break a new commit's tests, even if it fixes the downtime.
Which, by the same argument, makes all branches unstable. Why would you want to name, arguably the least unstable branch in the mentioned scenario - unstable?
May I suggest a name for that branch which does not conflict with other uses and is generally understood by most developers?
master
Merriam-Webster gives several definitions for this word, one of which seems to fit this purpose very well indeed: (noun) an original from which copies can be made, especially: a master recording (such as a magnetic tape), (adjective) being or relating to a master from which duplicates are made, (verb) to produce a master recording of (something, such as a musical rendition)You can use this one-liner to rename your confusingly-named default branch:
$ git branch -m main master
$ git status
On branch masterI refuse to kowtow to political pressures that don't actually help minorities. What's next, Master Lock and MasterCard changing company names to Main Lock and MainCard?
Not overly familiar with Wordnik, but a summary examination of this page shows a demonstrable variance in different senses and meanings drawn from different dictionaries.
Check the etymology at the bottom; “Master” still retains this sense.
Renaming “master” to “main” helps absolutely zero people. It’s just some pathetic, low effort, virtue signaling.
I'm curious to know who caused this change, but I have a strong idea at what kind of person it is.
And now, here we are, where we can't have an honest discussion about terms without automatically being slapped as racist despite multiple meanings of the same word.
When I was young, it was really popular to refer to things via homosexual slurs to show how cool you were. Can you imagine how much trauma such an action imparts on someone who is a part of said slurred out-group when it is widespread and socially accepted?
I think that all social change is imparted through pressure, and the pressure to use language in a fashion minimizing slurring, outcasting, and denigrating structures is important. It's true that in this instance, it may not make sense and may be an intrusion on you and what you feel - and that's okay. It's also important to put the same pressure back that says "this piece of language does not have negative connotations and taking it away is policing free speech".
Surely you see how it can be appropriate or not appropriate to push back given the subject material.
"I don't like the terms master/slave, they make me uncomfortable with the connotations of my ancestor's slavery, can we change them?" -> "NO MORE CAN A MAN BE ENTITLED TO THE CHOICE OF ASCII CHARACTERS ONE WOULD DEMAND IN A FREE COUNTRY! THIS IS THOUGHTCRIME BY THE BACKDOOR! ORWELL! TYRANNY! HAS EVERYONE FORGOTTEN 1984 ALREADY?!"
> "where we can't have an honest discussion about terms without automatically being slapped as racist despite multiple meanings of the same word."
Except we can have such a discussion, without being automatically anything, and many people do have said-discussions. There is no accusation of racism in The Article against people who aren't making the change, there is only a discussion of pros and cons and reasons. Same (so far) in these comments about the article.
Newspeak was not a "more politically correct" recommendation of words to avoid offending people, Newspeak was a reworking of the English language to make it literally impossible to think certain thoughts, and a combined revision of all historical records to wipe those ideas out completely.
Asking people to change "master" to "main" like the opening tweet in the article, "I'm doing this. Join me" is not tyrannically oppressive insanity. It's not trying to wipe historical evidence of slavery. It's not trying to change what you can think about.
For instance, if this became a D&I initiative, speaking out against it could be... dangerous. It can have a chilling effect on other people who would otherwise not agree.
I suppose that has a lot to do with the culture at a workplace. Given the current political climate with race relations though, it does make it a little scary to oppose measures D&I related, don't you agree? It would be nice to have an environment where you can respectfully speak your mind without getting labeled and/or canned.
It's not problematic terminology unless you have problematic thinking, which seems to be more infectious these days than COVID.
My problem with this, though, is that it feels like the ultimate in "slacktivism" mainly put in place to make white people feel better about themselves. I have rarely (or, actually, never, but to be honest I haven't scoured Twitter looking for posts) seen black people pushing for these kinds of changes (as opposed to many other areas where changes would actually make a difference in the workplace).
It's so easy for people to have an opinion on this, when I would rather change the offending name and move on to more important things.
Personally, I like the name trunk, since it makes more sense with the branching metaphor. But ultimately, call it whatever you want, I'll adapt.
The company is extremely good at pointless tediousness anyway (our issue types in jira have been changed three times in the last year, and I could not even tell you what a bug is any more), so more busywork will be par for the course.