TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Update to Git changes the default of init.defaultBranch to main

106 点作者 Trisell超过 4 年前

42 条评论

tachyonbeam超过 4 年前
If I say &quot;you are the master of your own destiny&quot;, is that offensive, because the word &quot;master&quot; is always offensive?<p>I think that &quot;main branch&quot; sounds fine, it makes as much sense as &quot;master branch&quot;, but I&#x27;m irked that people are always caving to word policing. Like, we&#x27;re just going to scratch a whole bunch of words from the dictionary because someone somewhere is offended? The other day, people at my workplace were saying that expressions like &quot;blind spot&quot; and &quot;falling on deaf ears&quot; needed to be purged. AFAIK, &quot;blind spot&quot; is not actually about blind people, it&#x27;s a term related to driving and the angles seeing people can&#x27;t see in without looking.
评论 #25138729 未加载
评论 #25138539 未加载
评论 #25138578 未加载
评论 #25144394 未加载
评论 #25138543 未加载
评论 #25138556 未加载
评论 #25145165 未加载
评论 #25147640 未加载
评论 #25138600 未加载
评论 #25142070 未加载
评论 #25140194 未加载
GhostVII超过 4 年前
I hate this, we shouldn&#x27;t be accommodating people being irrationally offended. Sure it&#x27;s not much work in this instance, but what happens when people move on to being offended by blacklist, or sanity check, or one of the other thousands of terms that can be warped to be offensive. And then if you refuse to change because it makes no sense and is a lot of work, you become some kind of racist&#x2F;sexist because the expectation is that you change your language to accommodate the tiny number of people who are offended for no reason.<p>Language is a tool, and changes over time. If the meaning of a word actually changes to mean something offensive of course we should change it. But that isn&#x27;t what has happened here, instead people are picking out one offensive definition of &quot;master&quot; and trying to apply it to places where it doesn&#x27;t make sense. Are we going to rename &quot;master of ceremonies&quot;, or &quot;master record&quot;? Of course not, because in a language where words have multiple definitions, context matters.
评论 #25139844 未加载
denysvitali超过 4 年前
Can we please stop wondering about being politically correct and focus on the real problems of the world? Thanks!<p>I would also like to add the fact that politics or any social matter IMHO should be kept out of software in general. I don&#x27;t think that any other engineering field has this much drama over some words that have been part of our whole life until now like IT is having.
评论 #25138806 未加载
评论 #25138732 未加载
评论 #25138708 未加载
评论 #25138722 未加载
aronpye超过 4 年前
I’m fascinated when people, including myself, are offended by noises other people make with their faces.<p>You can try to ban words, but that doesn’t abolish the thought that generated the word. However, that doesn’t stop people from trying.<p>Ultimately compelled speech is an attempt at mind control.<p>From <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Newspeak" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Newspeak</a><p>“Newspeak is the fictional language of Oceania, a totalitarian superstate that is the setting of dystopian novel Nineteen Eighty-Four (1949), by George Orwell. To meet the ideological requirements of English Socialism in Oceania, the ruling English Socialist Party (Ingsoc) created Newspeak, a controlled language of simplified grammar and restricted vocabulary designed to limit the individual&#x27;s ability to think and articulate &quot;subversive&quot; concepts such as personal identity, self-expression and free will. Such concepts are criminalized as thoughtcrime since they contradict the prevailing Ingsoc orthodoxy.”<p>—<p>In the future, how will people be able to judge whether they are enslaved or oppressed if the concepts and historical records of slavery are erased?
zacwest超过 4 年前
The branch name &quot;master&quot; does not have &quot;golden master&quot; or &quot;master copy&quot; roots: <a href="https:&#x2F;&#x2F;mail.gnome.org&#x2F;archives&#x2F;desktop-devel-list&#x2F;2019-May&#x2F;msg00066.html" rel="nofollow">https:&#x2F;&#x2F;mail.gnome.org&#x2F;archives&#x2F;desktop-devel-list&#x2F;2019-May&#x2F;...</a>
评论 #25139343 未加载
评论 #25139043 未加载
评论 #25143597 未加载
评论 #25138736 未加载
umvi超过 4 年前
Sigh... sad to see the tech community bullied into compliance over a non-issue by political correctness activists.<p>It&#x27;s not really that big of a deal (and in some ways &quot;main&quot; is better anyway because it&#x27;s 2 characters shorter), it&#x27;s just the principle of the thing that bothers me. I would rather see projects and people stand their ground instead of caving to pressure anytime a twitter mob comes along.
评论 #25138726 未加载
评论 #25138668 未加载
评论 #25138770 未加载
评论 #25138674 未加载
评论 #25138698 未加载
评论 #25138636 未加载
评论 #25144836 未加载
评论 #25139365 未加载
评论 #25138790 未加载
pyentropy超过 4 年前
Will there be a warning if you try to use &#x27;master&#x27; as a refname if it doesn&#x27;t exist but &#x27;main&#x27; does? I assume beginners using educational resources that aren&#x27;t up to date with this change will be really confused.
评论 #25146664 未加载
hansdieter1337超过 4 年前
Looking forward to all the bugs and problems this will cause. At least some over-sensitive ppl (or trolls?) will be happy. One more to add to <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;List_of_name_changes_due_to_the_George_Floyd_protests" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;List_of_name_changes_due_to_...</a>
评论 #25139623 未加载
renewiltord超过 4 年前
Non-issue. I&#x27;ve run the following because I&#x27;m used to it:<p><pre><code> git config --global init.defaultBranch master </code></pre> This default doesn&#x27;t matter to me.
评论 #25144942 未加载
评论 #25141335 未加载
gorgoiler超过 4 年前
In my professional experience as a teacher of high school children the following terms consistently cause problems in class:<p>- <i>git</i>: literally a pejorative<p>- any website name ending in <i>-hub</i>, cf websites of interest to teenage boys<p>Imagine a software project called <i>catshit</i> made popular by a related website called <i>catshitpiss</i> where their great pearl-clutching debate is about how it potentially alienates people with cat fur allergies.
评论 #25139259 未加载
ttmb超过 4 年前
The change doesn&#x27;t make my life worse in the slightest, and may improve someone else&#x27;s mental health. No reason for me to be against it at all.
PretzelFisch超过 4 年前
If the name change builds a larger, diverse, empathetic community. What have you or I lost?
评论 #25138780 未加载
评论 #25138691 未加载
评论 #25139256 未加载
评论 #25172254 未加载
评论 #25138867 未加载
评论 #25138627 未加载
评论 #25141898 未加载
s_dev超过 4 年前
Given the motivation for this change -- will the same people be advocating that we must refer to main in HDDs that are in a RAID configuration? Seems a touch over-sensitive in my book.<p>&#x27;main&#x27; is a better choice because it&#x27;s shorter -- it&#x27;s also a keyword in many C based programming languages that programmers are inherently slow to write&#x2F;override. They should have been the stated reasons.
评论 #25138669 未加载
评论 #25138670 未加载
评论 #25138626 未加载
评论 #25138935 未加载
nromiun超过 4 年前
I don&#x27;t really mind this change. But selective outrage like this is really strange. Some people on Twitter decide a word is offensive and the next day I am just expected to just stop using them. It&#x27;s hard enough to learn English without these new laws all the time. I don&#x27;t think this happens to any other language.
评论 #25147957 未加载
评论 #25147192 未加载
评论 #25140737 未加载
tyrion超过 4 年前
Now I am tempted to set the default branch to &quot;offensive&quot; or &quot;inappropriate&quot; :D<p>On a more serious note, I can agree that the master&#x2F;slave terminology is not the best choice of words, but how is the usage of the word &quot;master&quot; in git deemed offensive?
评论 #25151404 未加载
kissiel超过 4 年前
As a Slav I feel offended by changes like this, mainly because it means that someone saw a word that - in a totally different context - and thought of the bad meaning. What next? s&#x2F;killall&#x2F;pleaseturnoff?<p>I also have a bad feeling about Parus major (the bird).
emptysongglass超过 4 年前
This is ethics grandstanding without putting in any of the work and does more to divide us human beings than it does to heal.<p>Class politics not identity politics. All of us are workers in the service of the true masters holding the leash to capital emancipation. This is how I know you black brother, this is how I know you Asian sister, my fellow workers. It&#x27;s the cause worth fighting for, not helpless endless division built on a bedrock I can never be: the color of your skin or the shape of your brow.
adontz超过 4 年前
I think there is more to this than people usually see. While I agree to those who say that people are being irrationally offended, I see banning of word master as exactly what would a master do.<p>Not only methods are silly, because it seems a paradox to me that enforcing unfair policies makes happier those who were victims of unfair policy enforcement. (Oh, wait, no paradox here, just human nature), but what concerns me much more is enforcing of US culture. Companies eliminate words master, black, and others like offensive ones, but they may not be offensive in other cultures. Even more, replacements may be even more offensive. Why questionable fear of offending some of 40 million black U.S. people by just using a word, without any intent to offend anyone is enough to enforce some country-specific culture based policy on 7 billion people?
nicbou超过 4 年前
All political correctness talk aside, &quot;main&quot; is a much better name for the main branch.<p>There was a similar debate about blacklist and whitelist, and I much prefer the recommended alternative: blocklist and allowlist.<p>The meanings if those new terms are self-evident.
csense超过 4 年前
Political correctness run amok.<p>It&#x27;s dumb that people find this offensive.<p>It&#x27;s dumber that people are renaming their branches.<p>It&#x27;s dumbest that Git itself has been consumed by this madness.
raverbashing超过 4 年前
Political issues aside, it seems that &#x27;master&#x27; was hardcoded in several places on the code<p>I&#x27;d have imagined that it was more of a config issue than code, but apparently not.
rozab超过 4 年前
This will have broken tens of thousands of beginner programming tutorials. Very unfortunate.
评论 #25139459 未加载
评论 #25139392 未加载
steviedotboston超过 4 年前
I&#x27;ve long felt that &quot;trunk&quot; is a much better name than &quot;master&quot; or &quot;main&quot;.
评论 #25138728 未加载
评论 #25141316 未加载
e2le超过 4 年前
What exactly is the rationale behind changing the default branch name? It seems like significant effort is being devoted to this (code changes, fixing broken CI, etc.) but I don&#x27;t understand why any of it is necessary.
评论 #25138789 未加载
devenblake超过 4 年前
Personally, I love this change. &quot;main&quot; takes less time to type than &quot;master&quot;.
nnutter超过 4 年前
“of or relating to a master from which copies are made: master film; master matrix; master record; master tape.”
sputr超过 4 年前
I&#x27;m fine with this. It costs me almost nothing, but it means something to some people and I see no reason to block them from getting it.<p>And its gonna be juuuust a bit easier to explain git to non native speakers who understand &#x27;main&#x27; and not &#x27;master&#x27;. A bit. Tiny bit.
secondcoming超过 4 年前
When this came up initially I asked some of our PoC employees for their thoughts on it down the pub. One didn&#x27;t care, and the other thought it was stupid.<p>We did change to exclusion&#x2F;inclusion lists though, as that terminology is used when communicating with customers.
fimdomeio超过 4 年前
There&#x27;s a saying in my language that translated goes something like: &quot;Words are taken by the wind&quot;.
sorokod超过 4 年前
There is a scene in Apocalypse Now where Kurtz says: &quot;We train young men to drop fire on people. But their commanders won&#x27;t allow them to write &quot;fuck&quot; on their airplanes because it&#x27;s obscene!&quot;<p>I find these shananigans very much in the same spirit.
TechBro8615超过 4 年前
When will they change the name of the software itself? I’m pretty sure “git” is a more offensive term than “master,” as it means an “unpleasant or contemptible person.” The point of the word is to use it when intending to be offensive.
agustif超过 4 年前
The other day I noticed my freshly created repo on GH was with main, and I took the time to create a master and make it the new default, and then deleting main.<p>It was my only way to say FU to the word police mafia
imtringued超过 4 年前
Let&#x27;s create an excuse to be angry and then another excuse to be angry at people who aren&#x27;t angry.
Khaine超过 4 年前
Whatever happened to &quot;sticks and stones may break my bones, but words will never hurt me&quot;
评论 #25149743 未加载
fargle超过 4 年前
I will NEVER cave to this kind of narrow-minded bigoted thinking. Thank god for open-source.<p>Revert, revert, revert.
tsujp超过 4 年前
Politics does not belong in tech.
nickpp超过 4 年前
I am still waiting for them to stop using the world ROBOTS. It means slaves.
fimdomeio超过 4 年前
And I hope very soon we will replace the concept of users from platforms like google and facebook, since we&#x27;re the one&#x27;s being used.
rubyist5eva超过 4 年前
git branch -m main master
_pmf_超过 4 年前
This will save so many slaves.
throw7超过 4 年前
The people who believe this is correct are the racists. The pen is truly mightier than the sword, unfortunately for you, it&#x27;s run out of ink.
wayneftw超过 4 年前
Meh. I&#x27;ll change it back. I&#x27;m not &quot;dying on a hill&quot; either when I do this because nobody will care. Nobody that I work with will care and nobody that looks at my source code online will care.<p>If and when someone does care about what I name my branch, it will be an easy way for me to identify a person that I would rather avoid working with.<p>The reason I care enough to even change it back is because I think the whole idea is driven by stupidity and it&#x27;s my personal policy to not give into stupid demands. I simply don&#x27;t do political correctness. If people don&#x27;t like it, they can just fuck right off.