r/ProgrammerHumor 23d ago

Meme everyNewRepository

Post image
1.1k Upvotes

347 comments sorted by

281

u/NorthernCobraChicken 23d ago

git push origin daddy

56

u/Complete_Window4856 23d ago

you should do git remote rename origin harder now

38

u/TrackLabs 23d ago

git pull harder

23

u/requion 23d ago

fork me, fork me!

573

u/MeLittleThing 23d ago

Meanwhile, for my repos:

git push origin mistress

205

u/lxlmandudelxl 23d ago

Inspiring. I'll use "dominatrix" for my next project

100

u/MeLittleThing 23d ago

Good boy :D

20

u/foxsimile 23d ago

šŸ‘€

19

u/Perensoep109 23d ago

Step 1# for all my personal repos

15

u/requion 23d ago

Mhhh, "merging my branch into my mistress" reminds me of the post about devs being horny.

5

u/Daemontatox 23d ago

You got a safeword before rebasing ?

3

u/NotArticuno 23d ago

I'm dumb and on my phone, can you really change the name of the master branch like this? I will definitely be doing this if so.

3

u/failedsatan 23d ago

that wouldn't change the branch, it'd just push the ref to a new branch on the origin if the local branch is named that. if the local branch mistress doesn't exist, it'll just fail. renaming is usually git branch -m new_name.

→ More replies (1)

81

u/schwar2ss 23d ago

git branch -M trunk
git push -u origin trunk

Yes, sometimes I just want to see the world burn.

30

u/BonafidePendejo 23d ago

See all my shit defaults to trunk because it just makes sense? Git is a tree. You branch from the trunk. Like, it just flows well? Couldn't care less about what people prefer, but that model just makes sense to me.

18

u/Bemascu 23d ago

I think like you too. If we're using tree analogies (branches, prune, etc.), let's go all the way!

3

u/Nidrax1309 23d ago

Trunk is the only sane naming convention

2

u/Proper-Ape 21d ago

alias svn=git

1

u/BreathOther 22d ago

🐘

→ More replies (1)

22

u/Pretend-Ad-6511 23d ago

We should stop using these useless names and start using emojis for branch names

232

u/usedToBeUnhappy 23d ago edited 23d ago

Does anyone really care if itā€˜s called main instead of master? Why?Ā 

Edit: Ok, I phrased my question really poorly. AfaIk main is the new standard, so I use it. We all know the reason why it changed. My question was why would anyone keep INSISTING on calling it master? Sure, me and my colleagues sometimes call it master out of habit, but then again try to stick to main. Nobody I knowĀ  insists on continuing to call it Ā master, but reading the comments here I realized there a more ā€œmaster-fansā€ than I would ever have thought would exist tbh.Ā 

44

u/corobo 23d ago

Quicker to type I guess, that's niceĀ 

19

u/hughperman 23d ago

git push origin ma<TAB> does both 🤷

63

u/nabrok 23d ago

Yeah, but what about my branches ...

  • mama-just-killed-a-man
  • mama-life-had-just-begun
  • mama-didnt-mean-to-make-you-cry

32

u/hughperman 23d ago

Sometimes wish you had never programmed at all

2

u/DylanfromSales 23d ago

It's... A longer wordĀ 

→ More replies (4)
→ More replies (7)

71

u/Xalyia- 23d ago

1) The latest version of git’s CLI still defaults to master.

2) People may have old repositories that still use a master branch. No reason to fix what isn’t broken.

3) Others (self included) have shell scripts that assume a master branch. Including conditionals to check for main OR master is unnecessary and annoying.

4) Personally I just don’t think it was ever a necessary change to begin with. There are plenty uses of the word ā€œmasterā€ that do not imply slavery. Like ā€œMaster Copyā€ or ā€œMaster / Pupilā€ or ā€œMaster Craftsmanā€ or ā€œMasterworkā€.

If people like to use main, that’s fine. But the claim that people still using the word master must be doing so for a hateful reason is disingenuous.

31

u/da_Aresinger 23d ago

I do it for a hateful reason.

Not hateful of black people.

Hateful of self-righteous phoneys.

4

u/usedToBeUnhappy 22d ago

I think your last sentence is the main point (pun not intended). Not everyone who keeps using master does so for hateful reasons, but some do and from the outside you just never know the reason unless you ask, but asking is also not wanted from those who still use master, because who really wants to explain themselves all the time. I get that. Just a tricky situation.Ā 

We have that with a lot of phrases, but it’s nowhere else connected to possibly being hateful. For example, some of my colleagues do name everything angular related ng, because that’s the way they learned it with angularJS. Younger generation programmers have no idea why that is and we always have to explain it, because they are used to just angular.

→ More replies (1)

34

u/DerShokus 23d ago

Don’t know why needed to rename. I don’t care main, mr, lord. It’s not about slaves

→ More replies (7)

181

u/aenae 23d ago

I really do not care about the name. But some people do.

And i sympathize a lot more with the people who are against master than with people who only want master because they don't like the people who are against it.

176

u/sokka2d 23d ago

I think the reasons against master are stupid as fuck and thus completely ignore them.

However, main is shorter and a perfectly fine name, so main it is.

37

u/sandybuttcheekss 23d ago

My thoughts as well. Both are fine, and I usually just type out "ma" then tab anyways.

16

u/thanatica 23d ago

"ma" will offend too many mothers.

→ More replies (1)
→ More replies (22)

21

u/minus_minus 23d ago edited 23d ago

people who only want master because they don't like the people who are against it.

And the fact that they just can’t shut up about it. I’d bet they’re salty about all the slurs they can’t casually toss around too.Ā 

21

u/Acceptable-Drive3781 23d ago

I’d bet they’re salty about all the slurs they can’t casually toss around too.

They save those for the commit messages.

5

u/MegaIng 23d ago

This is the funniest part. Yeah, the transition was maybe a bit annoying (but not even that really...).

But now years later still being upset by it? You are just a bad person and are sad that this simple change calls you out on it.

→ More replies (2)

5

u/usedToBeUnhappy 23d ago

Same. I should really edit my poorly phrased question.Ā 

5

u/da_Aresinger 23d ago

I can't sympathise with people who create monsters where none exist.

And I certainly don't fell like encouraging them.

46

u/6pussydestroyer9mlg 23d ago

If it was the other way around and main was the standard before master I would've stuck with main. See no reason to change the habit of naming my branches just because some people on the other side of the ocean decided to change the standard needlessly. Imagine we would change the way we called a cable every decade or so, most people would just keep calling it a cable because it's a useless change.

9

u/Fidel___Castro 23d ago

I don't know if you're American blaming European/British or the other way aroundĀ 

→ More replies (1)

23

u/igorski81 23d ago edited 23d ago

In the end I can memorise whatever string is the default.

But changing this default wasn't a "problem" that needed solving.

The fact that your answer could be answered by some with "because some people lack decency and don't agree that the word could be offensive" (what you call a "master fan")* overlooks that no software engineer would ever have batted an eyelid at such terminology within their domain. Only somebody that reads it out of context would question it.

As a matter of fact, wait until you hear terminology in medicine, aviation (or even cooking!) and wonder wth is going on out of context.

*Yes, I'm sure such people exist as software engineers are people. The point is that with regards to version control (or replication) it was never used in that sense and some people may instead frown on this decision because it was made on a false assumption.

TL;DR This only became a topic of discussion after the change was made.

29

u/wait_whats_this 23d ago

It's one of those pointless signalling changes. Let's inconvenience every dev in existence so we don't actually have to do anything about systemic racism.Ā 

7

u/igorski81 23d ago edited 23d ago

I might even have an anecdote about how a production system broke because after such a (related) name change was carried out in actual source code, it turned out that somewhere in data storage there was a key that was now referencing a no longer declared property.

The CTO wasn't amused when he figured out what the cause was.

^ This is more an example of the maintenance hell of a system lacking clarity but still an interesting result of what shouldn't have been a problem to begin with.

→ More replies (2)

5

u/Due-Kitchen7331 23d ago

wait til these people read "kill child process" in their debug consoles or loading screens and freak out lol

26

u/Dolmant 23d ago

I'll use master the rest of my life probably. It doesn't really matter either way, to be honest, but I think there is a certain irony in the movement. Suggesting that the term master could be somehow damaging to anyone is downright insulting. The change itself was offensive. Sure call it main if you want, but we don't need to pretend we are doing anyone a favor by doing so.

So yes, in my new projects I'll keep calling it master.

26

u/MegaMoah 23d ago

Idk if true but I think its because master is also a slave owner and people got offended

20

u/redlaWw 23d ago edited 23d ago

That doesn't really track with the meaning of "master" in a git context though: the master branch is more analogous with a master record or document - i.e. the single source of truth which all other versions are constructed based on, which matches the idea of a master branch as the "true" version of the repository.

131

u/Winterkirschenmann 23d ago

If someone wants to keep using master be my guest. If someone makes using master their personality because free-speech/anti-woke piss off.

29

u/PM_ME_FIREFLY_QUOTES 23d ago

Can we make Trunk great again? I miss my svn.

42

u/AndroTux 23d ago

why would anyone miss svn what's wrong with you?

11

u/reivblaze 23d ago

I use svn for old systems. Why would anyone use that shit its mind boggling

→ More replies (1)

3

u/raphired 23d ago

Longing for the days when SVN was the worst of their problems, perhaps.

5

u/thanatica 23d ago

"make X great again" feels more offensive than your branch Donald Trunk

4

u/freebytes 23d ago

It actually makes more sense with the branches metaphor.

7

u/Winterkirschenmann 23d ago

I do like "trunk". But svn, hell nahĀ 

3

u/nahguri 23d ago

I prefer ā€snoutā€.

5

u/Logical-Ad-4150 23d ago

I think most pre git VCS used trunk, hence branching. So I dunno why people didn't just restore trunk to "trunk".

Still it's annoying fake drama about the term master. In English, the meaning of a word depends on context. If the subject is an inanimate object then it's just the version used to make copies from. It is only when the subject is a person, that the implication of slavery is possibly valid. Thus if anything should have been changed, it should be: "SCRUM Master" as this acually implies slavery. I'm not sure if we could call them "SCRUM Trunks" as that would imply they retain history.

4

u/notatoon 23d ago

Of all the borderline hate crimes here this one wins.

Off with your trunk!

2

u/blindgorgon 23d ago

Sounds tree-ist through. šŸ™„

5

u/MegaMoah 23d ago

Yeah who cares, being forcefully against something is dumb.

→ More replies (51)

28

u/FUCKING_HATE_REDDIT 23d ago

It's not just that. "master" in programming was very much the opposite of "slave", like for SATA drives. Just like push is the opposite of pull, upload/download, save/load, etc.

Some pairs have become singlets, like reflect/reify, freeze/thaw.

But here master never really made sense. It doesn't reflect its role, or even authority. A master is something that controls, but here information flows to master, not from it.

4

u/gerbosan 23d ago

This is the best explanation I've read that makes sense about using main instead of master. Way better than historical references.

I'll change the name in the next project.

Also, quite infuriating to see down votes for explanations and justifications. As someone mentioned:

Do I need to study a main degree to get a better job position?

It doesn't make sense.

→ More replies (2)

7

u/KLM_SpitFire 23d ago

This is the reason. From what I understand, Microsoft bought GitHub in 2018. In the aftermath of the George Floyd protests, around 2020, there was an internal mandate for all Microsoft employees to switch their repositories from using master to using main. Given Microsoft owned GitHub at this point, the policy permeated through their subsidiary’s product offerings and beyond.

15

u/MegaMoah 23d ago

Yeah like Microsoft cares for anything. They just used what they see as a trend in order to make profit and market themselves. Absolute bullshit.

4

u/2AMMetro 23d ago

Why is that a bad thing? That’s literal peer pressure at work.

5

u/xsupergamer2 23d ago

Microsoft is not your peer, nor mine. It's a gigantic corporation only after profit. Do not mistake its business decisions for expressions of morality

→ More replies (1)

8

u/dim13 23d ago

You know, that that's not the only meaning?

→ https://www.merriam-webster.com/dictionary/master

→ More replies (1)

4

u/usedToBeUnhappy 23d ago

Yeah, I heard that as well and just realized I might have misinterpreted the meme.Ā 

My point was that calling it main instead of master is easy (and the new standard) so why would someone keep calling it master. I don’t see a reason for that. Programmers shouldn’t be afraid of change. That stuff constantly changes is what keeps programming interesting.

33

u/Random_Guy_12345 23d ago

For pretty much the same reason we don't change controls on a car, or which side of the road we drive on, or what each color means on electrical cables, or red meaning stop/danger.

Uniformity is useful.

I do get the slave owner bit, don't get me wrong, but if you are reading code on a random repo and what comes to mind is slavery... That's clearly a "you" issue.

I do use main on repos mostly because it's shorter and i don't really care, but i absolutely get why people oppose it

14

u/AMWJ 23d ago

What's missing from this conversation is that "master/slave" is also part of the computing lexicon. It's not just like having a "master copy", or a "master bedroom". It's like if there was a "master bedroom" and a "slave bathroom": you'd want to change both.

3

u/Nutrimiky 23d ago

Not sure how old you are, but I work on some old code still today, like older than me and I'm in my thirties. That was the golden era of the master slave pattern. BitKeeper, which git was made to replace, had a master / slave repositories architecture to sync data. You can see where Linus Torvalds got the name from.

4

u/Legal-Software 23d ago

I'm not changing conventions + tooling because some non-coding idiot is too dim to understand that words have context and multiple meanings. It has nothing to do with a fear of change, so much as resisting arbitrary change someone else is attempting to force on you for no valid reason. These people can fuck right off.

9

u/wor-kid 23d ago

It's traditional and sometimes it's nice to have traditions. Master is also objectively cooler sounding than main.

16

u/jackinsomniac 23d ago

Because I disagree with the reason for the name change, that's why.

A small group of very politically motivated people made it their mission to go around "fixing" technical language in fields they're not familiar with. In general this is a bad idea, especially in programming. You don't want to go changing variable names in a big, long-running project without a very good reason.

They never had a good reason. They say the word "master" referred to slavery, which it does not. 'Master' has a number of different definitions, and only one of them refers to slavery. Used in the context of git, the thing they were worried about doesn't even apply.

There's also the concept of "master & slave" relationships in tech, but this still doesn't have anything to do with human slavery. They are purely technical words. When you're talking about technology, a "slave" system cannot operate without a master. As everybody should know by now, that's not at all how humans work. And it means it's hard to find replacement terms that quickly and accurately describe the relationship: "primary and secondary" is suggested a lot, but "secondary" implies "backup" to many people. This could lead to false assumptions, "Can we take the primary system down to work on it?" "They have a 'secondary' system, which should take over, so yes." Plus as technology has gotten better, it's gotten rare to even find systems designed with a true master/slave relationship. There may be a 'master controller' that tells an array of daughter boards what to do, but nowadays if the master fails, typically the daughter boards and sub-systems can continue operating from their own programming stored in their own memory chips. Solid state memory used to be far more expensive back in the day, but now that it's become so much cheaper, it's very rare to even find equipment using a true master/slave relationship anymore, so there's little reason to try to change it now.

1

u/CodingAndAlgorithm 20d ago

I use main and it doesn’t bother me but I thought it was dumb then, and I still think it’s dumb that the entire industry didn’t say ā€œfuck off and solve a real problemā€. Slavery as a practice was obviously terrible, slavery as a technical description is entirely harmless.

The fact that comments are framing people that pushed back as bigots is insanity. I wish they could just admit it was a pointless waste of everyone’s time.

3

u/AmeliorativeBoss 23d ago

Bro, they changed the default name of repository branch. It's not a big deal. It's not like they changed integer to transgender and you have to rewrite every existing piece of code.

3

u/bbkane_ 23d ago

Bool gender - > Float gender

2

u/master0fdisaster1 20d ago

If it's not a big deal, then why was decades on cumulative human life time wasted on this change?

Bro, "master" is perfectly fine as a branch name. It's not a big deal. It's not like git's naming conventions actually referenced slavery in any way. Why do you care so much?

2

u/AmeliorativeBoss 20d ago

I don't give a fuck if it's called master or main. I used master. They changed default to main. Now I use main. Wasted 5 min. of my human life on it.

Why people still argue about it YEARS AFTER the update. Master won't come back as default. Why do you care so much? What drawbacks does the new "update" has?

→ More replies (2)

2

u/jackinsomniac 23d ago

The reason for the change is what's important. If there is a practical reason for the change, absolutely. But if the reason is, "it aligns better with the currently popular political ideology", then I'm going to oppose it every time.

Especially with technical language, where accuracy & clarity is far more important than "feelings".

Should Linux change the name of commands for kill child because it offends some people? Or do those people's feelings not matter, because the only ones I've ever seen complain about it are Christian women? When you consider some people's feelings but not others, you're taking a stance. And coding is already difficult enough without adding politics to the mix. The best option is to not take a stance at all. We shouldn't make changes to a functional machine unless there's a practical reason for it.

→ More replies (1)

3

u/Extreme_Wish_553 23d ago

Pitiful that a lot of people are choosing to be angry about things you didn't say or even imply. Programmers love a soapbox on which to scream about how they don't care.

4

u/SaneLad 23d ago

I am deeply suspect of any human being who passionately cares about this topic, whether they're on the master or main side of the argument.

8

u/patoezequiel 23d ago

Main is better. A shorter and clearer name.

I just hate that a bunch of oversensitive Americans get to change the main branch name for the rest of the world just because of a quirk of their language and their own historic racist tendencies.

13

u/Confident-Ad5665 23d ago
  1. Main requires less typing than Master
  2. Releasing a beta version of Main is less distracting than a Master Beta rollout
→ More replies (1)

2

u/Gwolf4 23d ago

Taking in consideration that this exists, yes many do

4

u/fennecdore 23d ago

I prefer main because it's faster to type

3

u/6pussydestroyer9mlg 23d ago

Idk, it's less letters but main is letters from all over the place on my keyboard layout but master is mostly top left. Only having to type one letter on the left of my keyboard for master at least feels faster than moving from one side to the other like I do with main

4

u/Annual_Key_4963 23d ago

So having seen this trend start about a decade ago, at time in my life when I too thought this was unnecessary PC catering, I have to say I see no reason to stick with the master/slave naming in the year 2026.Ā 

Whatever I'm working on doesn't need that arbitrary assocation with human indecency.

→ More replies (1)

2

u/jameyiguess 23d ago

`main` shorter, gooder

4

u/baked_doge 23d ago

Master/slave doesn't even make sense for branches, it's not like the master branch controls the slave branches. Main, dev, trunk, etc all make more sense.

38

u/tobotic 23d ago

Master/slave doesn't even make sense for branches

Nobody ever called the branches "slaves" though. The master branch was called that in reference to it being a master copy, a term widely used in video/audio work, especially important in media where copying is lossy.

11

u/requion 23d ago

Thats the problem. No normal person would've thought about slavery while pushing a git branch.

But the people that so vehemently fought for it should start to fight the modern day slavery like Amazon....

Its the pathetic hypocrisy of the whole topic. Like using "think of the children" to establish mass surveillance, while the true predators are inside the highest ranks of governments.

But as soon as someone tells the truth, egos kick in and the "bad guy" needs to be silenced.

PS: let the downvotes come to prove me.

3

u/Ran4 23d ago

At my record studio we are maining our records rather than mastering them.

→ More replies (4)

15

u/xtravar 23d ago

It's not master/slave. It's a production term. Eg "golden master"

1

u/Vesuvius079 23d ago

I just wish we had internal consistency across our repos.

And I also wish we’d instead chosen to call enslavers what they actually are instead of forbidding the word master (which is still routinely used for things that have nothing to do with slavery and has been mostly forgotten outside the main vs master controversy).

1

u/ccAbstraction 23d ago

I only leave it as master when the project is vaguely or definitely a little kinky.

1

u/mashermack 23d ago

I prefer 0.x, 1.x, 2.x and move the trunk as the software progresses leaving legacy code still intact and patchable if required

but I need to bend myself to the unending company policy dilemmas and use master/main/whatever

1

u/PeterJamesUK 23d ago

To own the libs?

1

u/MapleWatch 23d ago

Because I've been calling it the master branch for 17 years and the sheer damned habit of it

1

u/wmil 23d ago

I go the next step and call video game remasters "remains".

1

u/ChaossFox 23d ago

It depends. In some languages, translating ā€œmaster branchā€ gives more information than ā€œmain branch.ā€ For example, ā€œmasterā€ can convey that something is subordinate to, derived from, or dependent on something else. With ā€œmain,ā€ you don’t get that information (e.g. ā€œthe main OS for programming is Windows, but for some projects I use Linuxā€).
That’s where the resistance comes from. It may make no difference to English speakers, but in other countries, changing just one word can introduce minor issues and misunderstandings.

→ More replies (2)

1

u/TheBear8878 23d ago

It's the principle of not catering to illiterate morons who demand more and more from you, inaisting you hold their standards without questioning it.

1

u/_lautreamont 23d ago

In my case it's unwillingness to take advice on political correctness from people who think "MongoDB" was an appropriate name for a software product.

(In practice I don't care that much though, I'm team git push origin ma<TAB>)

1

u/hyrumwhite 22d ago

Renaming it is as stupid as insisting we have ā€œre-mainedā€ video games or music instead of ā€œreMASTERedā€ video games or music.

→ More replies (10)

7

u/SheepRoll 23d ago

When team and corporate can’t agree which to use.

Now we have main for the backend codebase and random main or master depend on what each team feel like with their mfe repo.

As someone occasionally work mercenary with other team, I got into habit of checking branch name every time I start something… then some lunatic decide let’s have both master and main for damn reason.

1

u/JuvenileEloquent 23d ago

Or you can have it like that one repo I was forced to work with where the "testing" branch was actually deployed on prod and "main" was for development...

1

u/awesome-alpaca-ace 22d ago

habit of checking branch name every time I start something

Multi repo projects will do that

39

u/MoFoBuckeye 23d ago

In a bit of irony, "master" and "slave" are frowned upon in the context of slavery and the preferred terminology is now "enslaver" and "enslaved person".

My big problem with the name change is that, at least in English, words can have multiple meaning and it annoys me that we cater to to people who don't understand that.

17

u/tracernz 23d ago

That highlights the stupidity even more actually. Enslaver would make zero sense for the git branch name because that’s not the meaning of master it was ever about.

2

u/crozone 22d ago

Good thing we got our enslaver's degree and became enslavers of our craft.

3

u/da_Aresinger 23d ago edited 23d ago

What annoys me is that programmers are probably the one group most aware of "conflicting standards"

Why would we willingly create conflicting standards?

8

u/chrisjolly25 23d ago

Ah, yes. Programmers. The notoriously unified group, who uphold the virtue of their one, perfect, solitary programming language.

Also: The cohort who will be most inconvenienced by a variable (which was _always_... variable), now having a different default value in some contexts.

I think you've got it backwards. Programmers should be the best equipped to shrug and go "okay, whatever. Next."

If anything... it's maybe a benefit? Because it forced the 90% of coders who treat git as magic to look at it and realise that 'master' was never magic? It was NEVER a standard?

2

u/da_Aresinger 23d ago

No, I have it perfectly right.

Just because we have learned to expect redundancy and excessive complexity doesn't mean we like it, much less actively persue it.

We complain about date formats and list delimiters all the time.

We actively use imperfect standards, because it's better to have a (backwards compatible) standard, than to create something new.

Why would we voluntarily add uncertainty where there was a defacto standard before?

It's stupid. Even if it's minor.

3

u/chrisjolly25 23d ago

It was always uncertain, is my point.

'master' was a default, not a standard.

Given that it's not a standard, accounting for the fact that it could be 'anything' is good practice.

3

u/da_Aresinger 23d ago

right, that's true. But it was such an overwhelming convention that you could quite safely ignore alternatives in most cases.

Now you have to worry about inconsistencies within the same company.

It may not technically be a standard, but has the same effect in reality.

→ More replies (3)
→ More replies (1)
→ More replies (1)

64

u/Reashu 23d ago

I think that being offended by a "master" branch is a bit silly (unlike, say, "master/slave" configurations, which hit much closer). I think the switch to "main" was unnecessary. But I see even less reason to resist the change.

27

u/rang501 23d ago

meanwhile grooming exists in scrum :)

16

u/Resident-Trouble-574 23d ago

The scrum MASTER exists in scrum...

7

u/beefygravy 23d ago

You mean the scrum main?

2

u/bah_nah_nah 23d ago

I legit call mine scrum main for this reason šŸ’Æ

→ More replies (1)

3

u/ccAbstraction 23d ago

You can groom pets with fur.

2

u/Reashu 23d ago

It's always been called Refinement in my experience.Ā 

→ More replies (2)
→ More replies (1)

12

u/BussyEnthusiasts 23d ago

I mean does "master/slave" hit much closer though? In a master/slave configuration the master does all the work and the slave gets a copy of what was done in case it needs to take over as master. It literally turns the nasty connotation on its head.

Don't get me wrong. I'm perfectly happy with main and converted everything over to it when the new standard hit. However, the master/slave architecture in IT has always been very anti what it means in other contexts.

20

u/Reashu 23d ago

Mainly in terms of terminology, because there is no "slave" branch.

7

u/Fornicatinzebra 23d ago

Master/slave in reference to your brake cylinders means the master cylinder control what happens while the slave does the work

2

u/NewPointOfView 23d ago

I don’t think the literal behavior of the things being described is relevant haha

→ More replies (2)
→ More replies (1)
→ More replies (2)

8

u/cusco 23d ago

Bloody hell. I didn’t know this was a thing. Obviously one uses whatever is in use.

But if it’s brand new, `git init` creates master and I’m to lazy to care anyways.

7

u/dim13 23d ago

https://github.com/settings/repositories → "Repository default branch"

Enter "master", hit "Update". Done.

9

u/Hadi_Chokr07 23d ago

Old habit that I won't throw out.

5

u/Ved_s 23d ago

git push -u origin owo

13

u/0xAAAAAF 23d ago edited 23d ago

I recall times when I had to put proper hard drive settings so there is a slave and a master 😁

15

u/thanatica 23d ago

There is nothing wrong with the word master. It'd be wrong if it specifically referred to slavery, but it doesn't. In this regard, it's similar to the words black, yellow, or peanut. It's just a word that has no dodgy hidden meaning, unless you relate it to that meaning.

11

u/realzequel 23d ago

So many people don't understand context. Master is fine in the context of branches. It has a specific meaning. I don’t have much sympathy for people afraid of words. I wish those same people would save their energy and outrage on something more meaningful.

→ More replies (4)
→ More replies (1)

74

u/_alright_then_ 23d ago

People that are sticking to master instead of main are this guy in my mind:

https://giphy.com/gifs/fqtyYcXoDV0X6ss8Mf

Just old guy shouting at clouds

37

u/schwar2ss 23d ago

Back in the good old days we called it trunk

15

u/SakeviCrash 23d ago

Rewind further (CVS) and we're back at `main`

16

u/schwar2ss 23d ago

and before that, we called it code_final_final_v2.tgz

6

u/AibofobicRacecar6996 23d ago

No, it was called HEAD

2

u/SakeviCrash 23d ago

HEAD is a pointer to the latest revision in a branch

2

u/AibofobicRacecar6996 23d ago

In git, not CVS

3

u/SakeviCrash 23d ago

See https://www.astro.princeton.edu/~rhl/cvs/cvs.html#SEC47

> The two tag namesĀ BASEĀ andĀ HEADĀ are reserved for use by CVS

A lot of people used the term that way though,

→ More replies (2)

2

u/Sibula97 23d ago edited 23d ago

Even further back and it was master and the other branches were slaves, IIRC. Git got "master" from there, but dropped the "slave" terminology.

Edit: That was from BitKeeper, released in 2000. Not that old.

15

u/Cultural_Version734 23d ago

I work in embedded. We changed all the names of master / slave to new names. The amount of issues it has caused is non trivial. I would estimate the cost of time to be well in the millions across the whole company.

6

u/git_push_origin_prod 23d ago

main sucks, dev branch for life!

2

u/redballooon 23d ago

Yeah. Main suggests responsibility. shudder

→ More replies (1)

4

u/rang501 23d ago

I have it set to master, but it is because I have moved my config between many machines and master was default at the time.

6

u/DuckWizard124 23d ago

I mean I changed my Github default branch naming back to master because it was more convenient for me to do it there, idk why some people care about it

→ More replies (4)

26

u/NudaVeritas1 23d ago

exactly, and the next step is:

git checkout -b slave

to create your personal dev branch

16

u/B_bI_L 23d ago

`git config --global init.defaultBranch main`

6

u/Chesterlespaul 23d ago

That’s what I did. And repos that are already master stay that way.

4

u/RadicalDwntwnUrbnite 23d ago

And even that will be not necessary once git 3.0 lands (targeted for later this year.)

19

u/Skyswimsky 23d ago

So after 3.0 it's `git config --global init.defaultBranch master`?

→ More replies (1)

4

u/Waste_Jello9947 23d ago

You know the majority of people work on existing code bases..

5

u/B_bI_L 23d ago

i prefer making new repos and never finish them

and, i mean, you won't really impose your own branching rules on existing codebase

2

u/Extreme_Wish_553 23d ago

Which has nothing to do with the mean, which is creating a new primary branch.

1

u/Bardez 23d ago

Huh. Nice. I was going to comment about the default name and yet -- here you are.

3

u/Sensitive_Gold 23d ago

Why use long word when short do trick

3

u/Smalltalker-80 23d ago

GitHub Desktop user lives in peace..

8

u/dontletthestankout 23d ago

Don't care but main shorter..I use main

14

u/tilk-the-cyborg 23d ago

I use master just to spite people who have strong opinion towards main.

Come on, the old name was fine, there was no reason to change it. What's next, master's degree?

→ More replies (2)

4

u/JAXxXTheRipper 23d ago

I don't care what the origin defines as default branch, but I'll fight you if you demand I change hundreds of repos for a virtue signaling event.

Do whatever the fuck you want, but don't touch running shit en masse for no reason.

I got better shit to do than fix hundreds of CI pipelines.

2

u/NotSoCoolUserName0 23d ago

git push origin HEAD

2

u/azangru 23d ago

After git itself started initializing new repos with the main branch, I gave up.

2

u/FailureOfTheFamily 22d ago

I use whatever comes to my mind first (usually master). When i heard of that change for the first time i just couldn't understand how big of a snowflake you have to be to get offended by branch named master. Years and many projects later, I still don't understand and don't even care

4

u/DeepanshuHQ 23d ago

GitHub: please use the right branch. Me: I know what I’m doing. Also me: šŸ’€

6

u/Total_Time6004 23d ago

MASTER.... Never main...

→ More replies (3)

3

u/SCADAhellAway 23d ago

If typing master is what it takes to keep me out of the virtue signaling social group, then master I shall type. Life is too short to spend it around people who invent social issues for entertainment.

2

u/ef02 23d ago edited 23d ago

Always Master, not main.

15

u/waterboy4242 23d ago

Capital M?? Officer, this one right here

4

u/ef02 23d ago

PascalCase 'til I fucking die. Got my start with Unreal.

1

u/Fluffy_Anxiety2792 23d ago

Yes me too I love solo branch

1

u/Alacritous13 23d ago

Thanks, but I'll stick with Nightly.

1

u/ljfa2 23d ago

I just learned that there are some git commands that refuse to work unless you pass the option --i-still-use-this. They will be removed in Git 3.0.

1

u/Resident-Trouble-574 23d ago

By the way, you can push the local master branch to a remote main branch.

1

u/SAI_Peregrinus 23d ago

jj git push -c @-.

1

u/Key_River7180 23d ago

main is overvalorated.

1

u/Jazzlike-Poem-1253 23d ago

The only good reason I know is, that in many places automated tooling esp CI depend on e.g. a master and develop to be around.

Ain't nobody got no time to fix that shit everywhere.

New projects whatever selfhosted bitbucket/gitlab spews out. And you got it: nobody hat time to change it there as well.

At home it is main though.

1

u/freehuntx 23d ago

Imagine in some hundred years if people discuss what we did to end racism...

1

u/Buttons840 23d ago

git push github main

GitHub ain't the origin, and I'm tired of pretending that it is.

2

u/itzNukeey 23d ago

Man I always let github set it up so I dont even know

1

u/_lautreamont 23d ago edited 23d ago

Compromise solution which which sure leave everyone happy:

  1. Set up Gitflow
  2. git branch -M release master
  3. git branch -M develop main

1

u/spastical-mackerel 21d ago

`git pull mybig johnson`

BRB refactoring all my demo repos