TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New GitHub repos to have default branches named “main” instead of “master”

63 pointsby davecyenover 4 years ago

23 comments

susamover 4 years ago
Political correctness aside, &quot;main&quot; does sound like a more natural name for the main branch.<p>The term &quot;master&quot; for a branch name always felt a little strange to me. One might ask, &quot;What is master?&quot; The answer usually is, &quot;It is the main branch.&quot;<p>The same thing held true for &quot;trunk&quot; in the SVN world, although it made more sense. One might ask, &quot;What is trunk?&quot; It requires a lengthy explanation, &quot;It is the main development branch. We will create other release branches from it. Imagine a tree with a trunk from which other branches grow.&quot;<p>One is less likely to ask, &quot;What is the main branch?&quot; The branch name is self-explanatory.
评论 #24532200 未加载
评论 #24532272 未加载
评论 #24535007 未加载
评论 #24532784 未加载
justRafiover 4 years ago
&#x27;master&#x27; branch is like a master recording, an original from which copies can be made off. I don&#x27;t have a Master degree in English, but it feels someone is terribly confused.
评论 #24532209 未加载
评论 #24532288 未加载
评论 #24532259 未加载
评论 #24532250 未加载
emergedover 4 years ago
You can continue to pretend otherwise, but this is an ideological infiltration into a supposedly rational field. Downvotes or not I&#x27;m not going to pretend otherwise.
评论 #24537428 未加载
评论 #24532232 未加载
rich_sashaover 4 years ago
In one swift stroke, GitHub fixed racism and diversity issues in tech. And all that without spending a penny, awkward outreach programmes or deep soul-searching as to the roots of the problem. In your face, naysayers.<p>Oh, wait...
justRafiover 4 years ago
I don&#x27;t think you can erase words from the vocabulary to get rid of bad undertones in society. If someone is offended by a &quot;master&quot; branch name, I suspect they are easily offended, and might be onto on some crusade. Renaming variables and tech paradigms that refer to computer idioms, not people, is lame. The real problem is misconception and bigotry in people&#x27;s hearts.<p>We could stop using the sex&#x2F;porn industry and reduce the human trafficking epidemic in some countries, or completely stop buying from companies that manufacture in horrible conditions.. or change computer idioms and debate until we&#x27;re blue.
评论 #24532519 未加载
brntover 4 years ago
I&#x27;ve a Master of Science degree, will that chance too? Is anyone offended by that terminology?<p>[Edit] maybe I should clarify: in my native language master only has the connotation of mastery of a subject. A slave owner can&#x27;t be called &#x27;master&#x27;, so we don&#x27;t have that unpleasant crossover.
评论 #24532153 未加载
评论 #24532254 未加载
评论 #24532309 未加载
评论 #24532155 未加载
Tomis02over 4 years ago
I don&#x27;t have a problem with changing the name but the motivation bothers me. For years we&#x27;ve had unintuitive&#x2F;unfriendly names - an example on this thread was &quot;pull requests&quot;, name picked by someone who was so high that he was seeing himself from the 3rd person, in a mirror, while standing on their head.<p>God forbid we change the names so that they actually start making sense; oh no, we stick with V1 til the heat death of the universe, we wouldn&#x27;t want to confuse already confused developers by fixing the dumb thing.<p>Ok, fine, now that you&#x27;ve started, will you fix the rest of the names too? The ones that aren&#x27;t politically charged, that is.
ibobevover 4 years ago
I suspect that it is not far away the day when the academic degree &quot;master of science&quot; will also be renamed. :) It is complete insanity. We are starting to live in Orwellian world. If you remember in 1984 the abonamation of the language in a way to not allow wrong thinking was one of the characteristics of the totalitarian government. :(
beebmamover 4 years ago
I&#x27;ve always thought &quot;master&quot; was a weird name for the default branch
评论 #24532165 未加载
627467over 4 years ago
Performative activism. Master example of avoiding dealing with real issues.
评论 #24532223 未加载
throwaway_bwicdover 4 years ago
We already have a problem with frequent and, in many cases avoidable, API&#x2F;interface changes in our industry. Think about the last time you use some library, then it&#x27;s API changes, and you spend a day fixing this in your codebase.<p>The fact that this change affects only new repos is not reassuring. There are tons of tutorials, scripts and other stuff out there relying on the default naming (&quot;upstream&quot; is the other branch name that is frequently used). Git is already complex enough, especially for beginners.<p>Also, other git hosting services (and git itself) still use &quot;master&quot; as the default branch name, which will create even more confusion.
zerocratesover 4 years ago
Is there any movement on the Git side?<p>I&#x27;m assuming this doesn&#x27;t actually apply if you follow the more &quot;classic&quot; method of creating a Github repo: creating a local git repo and just adding Github as a remote.<p>Edit: I figured that Git itself probably wouldn&#x27;t change the default branch name (at least not easily), but thought that just making it configurable would be a &quot;neutral&quot; way to make it easier for people to do this if they wanted to.<p>I guess they, in fact, already did that: <a href="https:&#x2F;&#x2F;superuser.com&#x2F;a&#x2F;1572156" rel="nofollow">https:&#x2F;&#x2F;superuser.com&#x2F;a&#x2F;1572156</a>
评论 #24532322 未加载
jakelazaroffover 4 years ago
This is a tiny change that has no substantial negative effect on anyone’s life. If they’d renamed “pull requests” to “merge requests” no one would care, at all. Let’s <i>please</i> not make a big deal out of it.
评论 #24532176 未加载
评论 #24532221 未加载
评论 #24533526 未加载
评论 #24532244 未加载
评论 #24532212 未加载
评论 #24532442 未加载
评论 #24532273 未加载
评论 #24532195 未加载
scepticalover 4 years ago
Rename of master branch is happening at the company I work at. I find it rather pointless but the company is paying for my time so if they want me to spend time on this then fine by me.<p>I will still call it the master branch though.
userbinatorover 4 years ago
&quot;Inclusivity includes idiocy.&quot;<p>If you&#x27;ve ever wondered why software quality has taken a nosedive in recent years...<p>&quot;At least we&#x27;re diverse!&quot;<p>Thanks for all the downvotes. The bias in here is really obvious. ;-)
astraloverflowover 4 years ago
The etymology of &quot;master&quot; according to Wiktionary:<p>From Middle English maister, mayster, meister, from Old English mǣster, mæġster, mæġester, mæġister, magister (“master”), from Latin magister (“chief, teacher, leader”), from Old Latin magester, from Proto-Indo-European *méǵh₂s, (as in magnus (“great”)) + -ester&#x2F;-ister
评论 #24532251 未加载
bhaakover 4 years ago
I don‘t mind renaming the default branch.<p>But I’ll see many tools breaking or bugs surfacing because they can’t find the master branch.<p>One repository I used didn’t have a “master” branch but a “Master” branch. That was annoying.<p>Git doesn’t have a concept of a main branch. Maybe we will get that now as a result of GitHub’s change.
评论 #24532454 未加载
评论 #24532335 未加载
dariosalvi78over 4 years ago
Honest question: anyone here on HN from a black US background? How do you feel about all this&quot;political revisionism&quot; of the tech jargon? I find it silly to the point that it&#x27;s offensive, but I&#x27;m not black and I don&#x27;t live in the US.
评论 #24535228 未加载
评论 #24532767 未加载
jaimex2over 4 years ago
Wonder if Microsoft will be renaming the main character of their Halo games too :)
评论 #24554316 未加载
jaimex2over 4 years ago
Lets take bets on the next white guilt label change:<p>I&#x27;m betting Master Chef or Master degrees.
nprateemover 4 years ago
&quot;Starting next month, all new source code repositories created on GitHub will be named &quot;main&quot; instead of &quot;master&quot; as part of the company&#x27;s effort to remove unnecessary references to slavery and replace them with more inclusive terms.&quot;<p>FFS. Is this some kind of joke? This sort of PC bullshit is gold for rightwingers.
评论 #24532457 未加载
ykevinatorover 4 years ago
This is probably a good idea. Nothing else is working.
non-entityover 4 years ago
I&#x27;m having trouble understanding why this was flagged. It covers a major change to tool many (most?) developers use including time and reasoning. It&#x27;s straight to the point, doesn&#x27;t seem to seem to have much fluff, and isn&#x27;t really trained with author&#x27;s option &#x2F; ideology. Surely much worse and off topic political articles reach the front page without being mass flagged.<p>On a random note, I&#x27;ve had vouch for flagged articles &#x2F; comments before but it seems to very irregular. What decides if the &quot;vouch&quot; option is available to a user?
评论 #24532350 未加载