355
submitted 9 months ago by TxzK@lemmy.zip to c/programmerhumor@lemmy.ml
top 50 comments
sorted by: hot top controversial new old
[-] rwhitisissle@lemmy.ml 65 points 9 months ago* (last edited 9 months ago)

Instead of either, it's good to have a more descriptive primary branch:

git checkout -b dontwritetothisbranchdirectlyyougottaopenaprfirstandhaveitreviewedandapprovedandthenpasstheautomatictests

[-] Kbin_space_program@kbin.social 15 points 9 months ago

Git checkout -b neverpushtothisbranchthismeansyou

[-] synae@lemmy.sdf.org 9 points 9 months ago

git co -b nevergonnagiveyouupnevergonnaletyoudown

[-] rwhitisissle@lemmy.ml 7 points 9 months ago

Git checkout -b branchprotectiononlyworksifyouarenotsetupwithadminprivilegesontherepoingithubthismeansyouhowardgodammit

load more comments (3 replies)
load more comments (2 replies)
[-] masterspace@lemmy.ca 7 points 9 months ago

Still shorter than a java class name.

[-] davel@lemmy.ml 52 points 9 months ago

Try not to make memes that imply you’re not anti-slavery.

[-] kaida@feddit.de 57 points 9 months ago

I‘m anti-slavery but that’s just not the reason I use main as default branch

[-] TxzK@lemmy.zip 86 points 9 months ago

yup same. I hate slavery just like anyone else but fail to see how naming a branch master has to do anything with it. Next are they gonna claim that master's degree is pro slavery or something

[-] agressivelyPassive@feddit.de 56 points 9 months ago

Bachelor's degree means you're not married, so obviously an incel.

[-] idunnololz@lemmy.world 7 points 9 months ago

And doctors degree means you are legally allowed to perform surgery.

load more comments (2 replies)
load more comments (14 replies)
load more comments (1 replies)
[-] Empathy@beehaw.org 47 points 9 months ago

I use main because, although I never heard of anybody actually getting offended by master, it costs me nothing to use main instead. Also it looks prettier and seems to be the new convention ¯\_(ツ)_/¯

[-] Ohi@lemmy.world 43 points 9 months ago

No disrespect, but asking everyone to remove words from the English language because they may offend a small group of oversensitive people is one of the most frustrating social initiatives of our time. "Master" makes sense for the job and unless we're also putting "Slave" and "Cotton" on the dictionary chopping block, the arguement will always seem arbitrary to me.

[-] Jorgelino@lemmy.ml 11 points 9 months ago

unless we're also putting "Slave" and "Cotton" on the dictionary chopping block

Aren't we though? At least when it comes to tech, Master-Slave terminology has been largely deprecated in favor of other terms.

[-] docAvid@midwest.social 7 points 9 months ago

The only reason you think "master" makes sense is because you're used to it. It's actually quite a weird connection to make, if you aren't used to it. "Main" is much more straight forward. And nobody is really demanding people stop using "master", so far as I am aware, it's just that people are making that choice themselves.

[-] corship@feddit.de 8 points 9 months ago* (last edited 9 months ago)

I vote for naming this branch "mommy", since all other branches are it's offspring, and related to it.

load more comments (1 replies)
load more comments (2 replies)
load more comments (1 replies)
[-] hperrin@lemmy.world 34 points 9 months ago

I use “secondary” as my default branch, because fuck the rules.

load more comments (2 replies)
[-] hellfire103@sopuli.xyz 32 points 9 months ago

I use master because I'm nostalgic. If it matters that much, though, I'll start using trunk (like we used to back in the days of SVN).

[-] MrScruff@lemmy.ml 13 points 9 months ago

Don't speak the name of that horror!

[-] 0x0@lemmy.dbzer0.com 8 points 9 months ago

At least it was better than CVS

load more comments (8 replies)
[-] mlg@lemmy.world 32 points 9 months ago

Master sounded so much cooler man

Like yeah I'm a master of linux

Literally no connotation to slavery when the word slave isn't even used in the git terminology

load more comments (2 replies)
[-] alefunguju@lemmy.one 32 points 9 months ago

I use main as my default branch because it's what Git has been defaulting to for some time now

[-] PoolloverNathan@programming.dev 18 points 9 months ago

Git's still master by default; github uses main for new repositories.

[-] kionite231@lemmy.ca 14 points 9 months ago

You mean github.

[-] vojel@discuss.tchncs.de 31 points 9 months ago

Oh I don’t give a single fuck about the discussion, it’s technology, not politics. I am more upset that my company has some legacy repositories with master and the newer ones with a main branch. So everytime I want to create a MR with push options via command line I need to change main to master or visa versa.

load more comments (1 replies)
[-] words_number@programming.dev 22 points 9 months ago

I also think it's more descriptive. Just like blocklist and allowlist.

[-] tsonfeir@lemm.ee 17 points 9 months ago
load more comments (1 replies)
[-] ShortN0te@lemmy.ml 13 points 9 months ago

I find it funny how many ppl complained about it when it came up. Now it is the default on github and other code forges. And now one cares anymore if it is master or main.

[-] agressivelyPassive@feddit.de 61 points 9 months ago

It was never about the name itself, but about breaking a convention for extremely dubious reasons.

[-] Deebster@programming.dev 10 points 9 months ago

On the plus side, forcing people to support alternative branch names surely has led to better software support for a core Git feature.

load more comments (1 replies)
load more comments (10 replies)
[-] Kbin_space_program@kbin.social 13 points 9 months ago

Because its a non issue to developers.

It was only a hand wringing thing by internet bloggers.

[-] cmnybo@discuss.tchncs.de 11 points 9 months ago

Master is still the default branch when you run git init.

load more comments (3 replies)
[-] Omega_Haxors@lemmy.ml 13 points 9 months ago* (last edited 9 months ago)

It speaks to the deep rooted whiteness of the industry that such a common-sense change is treated as completely bullshit even to this day.

[-] derpgon@programming.dev 7 points 9 months ago

It speaks to deep rooted butthurtness of USA boomers and constant need to enforce their stupid ass rules to others. It's not racist, neither are blacklist or whitelist.

load more comments (8 replies)
[-] MeanEYE@lemmy.world 13 points 9 months ago* (last edited 9 months ago)

Oh, how upset I was by that decision. I still call out GitHub online every now and then thanking them for solving slavery by messing up my deployment scripts and development environments.

load more comments (8 replies)
[-] IsoSpandy@lemm.ee 10 points 9 months ago

I use master because when I do 'git init .' I get a master branch and I am lazy enough to not rename it. As for typing it later on.. . Well zsh does that for me

[-] ryannathans@aussie.zone 9 points 9 months ago
[-] Chriswild@lemmy.world 14 points 9 months ago

When you're pro slavery but only when it's with consenting adults.

[-] SuddenDownpour@sh.itjust.works 8 points 9 months ago

Main in the workplace, master in the bedroom.

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 21 Jan 2024
355 points (91.2% liked)

Programmer Humor

32415 readers
339 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS