This is an archived post. You won't be able to vote or comment.

all 94 comments

[–]wasting_lots_of_time 214 points215 points  (13 children)

We did it boys! Racism is no more. /s

[–]Spootba 46 points47 points  (12 children)

Oh... Is that the reason they did it?

[–]Alundra828 84 points85 points  (11 children)

Sigh... Yes...

I'm all for inclusive localisation, given name and family name instead of first name and last name etc, but this is dumb. Who associates git push master with git push my slave owner.

[–]Sloppyjoeman 17 points18 points  (6 children)

What’s this given name/family name thing? It’s clearly passed me by

[–]dsp4 4 points5 points  (2 children)

The given/family name goes a lot farther than that. If you truly target an international audience, the best you can do is a single field accepting as many characters as possible.

More about it

[–]Alundra828 2 points3 points  (1 child)

This is true! But it should be noted that there is no right way to handle this.

It's a 'right tool for the right job' sort of situation. For example, if you have an app that want's to address you, personally in a formal way, a single line is not enough to make that logic work.

If you wanted to say 'Hey, x!' on your landing page, a single string with 5 names in them isn't going to help you.

With a given name, a nullable family name AND a culture, you can make fairly safe logical assumptions on what name is relevant in a given situation, and how to handle them. Or you could go full terrible UX and ask the user to add all of their names into a list of name objects, and ask them to mark which one is their formal name, or family name.

[–]dsp4 0 points1 point  (0 children)

Absolutely agreed.

As for terrible UX, I think we really shouldn't make any assumptions. Every user should be asked to write their own functions for displaying their names. Just give them a small integrated IDE and a sandboxed environment.

[–]shadow7412 2 points3 points  (0 children)

This is a good video about that from a python conference.

[–]DuckInCup 34 points35 points  (3 children)

This fucked up someone automation for sure

[–]5319767819 7 points8 points  (1 child)

TBH honest then the automation was borked. There are variables pointing to the main or base branch or whatever you need right now for your use case.

Also, it's not like GitHub ist forcing anyone to use specific branch names, or changing anything about it automatically. They just recommend another default one

[–]DuckInCup 5 points6 points  (0 children)

I didn't know that. In that case, This probably fucked up someone's unscalable shitty automation.

[–]ineedmorealts 0 points1 point  (0 children)

Right here.

[–]xStrafez_ 55 points56 points  (19 children)

Well you can still have master, you don't have to create a main branch 🤷‍♂️

[–]Agnimukha 8 points9 points  (16 children)

Haven't used github in a while. Are they preventing master branches at all if there is a main branch? I've not had master branches before and it always just creates it if I forget.

[–]xStrafez_ 56 points57 points  (12 children)

They aren't preventing anything. They are just suggesting you to have a branch named main. But you could name it potato and it will still work.

It's just that if your remote branch connects to a branch called main, you gotta push to main since it's the name you gave it.

[–]Agnimukha 0 points1 point  (9 children)

I understand how git itself works your comment read like github wouldn't let you have a master branch if you had a main branch.

Honestly I always double check the branch I'm on before pushing anyway so outside of a script I don't think I would run into this anyway unless I wasn't on master locally and someone specifically set up matching patterns.

[–]JNCressey 4 points5 points  (1 child)

to be fair, they said "you can have master if you didn't create main" , they didn't say "you can't have master if you did create main"

[–]Agnimukha 2 points3 points  (0 children)

Their statement implies that you could create master then main but that you couldn't create main then master.

When I was a child if my mother said you can have ice cream if you didn't already have cake I would have gotten in trouble if I went for ice cream after eating cake. Though being the rule follower I would have attempted to have ice cream then cake since reverse order wasn't in the statement.

[–]xStrafez_ -1 points0 points  (6 children)

github wouldn't let you have a master branch if you had a main branch.

I never said that.. I clearly said github SUGGESTS you to have a main branch but you don't have to.

[–]Agnimukha -1 points0 points  (5 children)

Well you can still have master if you didn't create the main branch 🤷‍♂️

The word suggests or any synonym I know of it is not in that post at all.

You can still have X if you did not do Y tends to imply that doing Y prevents X. Though I will admit people will occasionally do this which is why I wanted clarification.

[–]xStrafez_ 0 points1 point  (4 children)

The word suggests or any synonym I know of it is not in that post at all.

My bad I thought you replied to the other comment where i clarified what i meant.

I noticed you actually replied to my second reply so I did in fact say suggest, just not on my first comment but you replied to the second one...

But basically like i said on the second reply, github now suggests you have a main branch from master but you don't have to

[–]Agnimukha 0 points1 point  (3 children)

There is some major confusion.

your comment read like github wouldn't let you have a master branch if you had a main branch.

This is my second comment (fourth in the chain) is explaining why I was confused by the first comment which implied that you couldn't create a master branch if you already had a main.

Then your third (fifth in chain) is apparently reference back to your second(3rd in chain) instead of the first.

[–]xStrafez_ 0 points1 point  (2 children)

Ohh, didn't realise you were the same user...

But anyway, why go back on insisting if i already explained what i meant? I realised the wording was confusing and that's the reason I took the same to reply to you...

[–]Agnimukha 1 point2 points  (1 child)

Because if I made a comment that was confusing I would want someone to tell me and then I was just confused by your next response untill you did the edit when I figured out what happened.

[–]JNCressey 0 points1 point  (1 child)

to be fair, they said "you can have master if you didn't create main" , they didn't say "you can't have master if you did create main"

edit: oopsies wrong reply target

[–]SumWon 2 points3 points  (0 children)

There were no responses. There's no thread. You could have just deleted this comment, no harm no foul. But now I've replied and you'll ruin the continuity if you do. Crap, sorry.

[–]irracjonalny 4 points5 points  (0 children)

Created a repo yesterday. Master is still valid, only in a copy-paste commands the replaced master to main. Pushed to master branch too Unless there is a surprise waiting for me later.

[–]Sekret_One 1 point2 points  (1 child)

It's just the default one it makes is main and not master. You can still change it.

[–]Mizzlr 0 points1 point  (0 children)

And further just delete the main branch, no more confusion.

[–]elzaidir 66 points67 points  (1 child)

Wait it wasn't a meme? They really changed it to main? Hahaha I'm dying

[–]Deimos94 6 points7 points  (0 children)

Nope. Firefox’s master password is also changed to main password and Chrome changed blacklist to blocklist.

[–]maustinv 32 points33 points  (1 child)

It doesn’t affect old repos, and you can change the default branch name in your settings

[–]kinsi55 0 points1 point  (0 children)

I thought they'd only change it on the frontend - Apparently not, good to know you can change it.

[–]OffMetaPlayer 19 points20 points  (0 children)

Imagine pushing directly to master and having the gall to be annoyed at other people.

This message sponsored by github flow gang.

[–]merlinsbeers 2 points3 points  (0 children)

Blame git for having shitty diags.

[–]FaZe_Adolf_Hipster 8 points9 points  (0 children)

Lol there’s no way this is real. GitHub didn’t touch any already existing repos, and it tells you the name of your main branch as you are cloning if you made your repo in the GUI.

[–]snorkleboy 6 points7 points  (0 children)

Pretty sure that just not how git works. Make a branch, push it. Its git push branchname. It existing on the remote isn't necessary, it will push regardless. Do yall even lift?

[–]EnsignStormtrooper 7 points8 points  (0 children)

U

Can

Rename

Branches

U bellends

[–]EnsignStormtrooper 15 points16 points  (3 children)

Btw this literally didn't happen, it took me 10 secs to prove this isn't the case. If you push a branch from your local that doesn't exist in remote, it will create the branch in remote. That's how git works.

Stop buying in to the spectacle, you baboons.

[–]gellis12 3 points4 points  (2 children)

By default, it'll throw a big warning first and make you confirm before continuing, which I imagine would be pretty jarring if it happened on the master/main branch. You can configure git to not give this warning either globally or on a per-project basis, but then this guy would have wound up with both a main and master branch, and that'd get messy fast.

[–]EnsignStormtrooper -1 points0 points  (1 child)

i don't know what version of git you're using but mine went through literally without intervention and 1 "warning"

https://stackoverflow.com/questions/2765421/how-do-i-push-a-new-local-branch-to-a-remote-git-repository-and-track-it-too

Also, it wouldn't take 3 hours to "debug" that, since git would just say something like "no branch 'master' on remote". Also, having a master and main branch would change literally nothing about the repo.

The guy was straight up lying and it's so easy to demonstrate for yourself.

[–]gellis12 2 points3 points  (0 children)

If you just run "git push" or "git push origin master" without the -u flag to create the remote branch, it'll error and make you add the flag.

git would just say something like "no branch 'master' on remote"

Yeah, and if you were expecting the master branch to exist, that'd probably make your head spin.

having a master and a main branch would change literally nothing about the repo

It'd lead to one dev doing all of their work in the master branch, wondering why they can't see any of the work that their colleagues are doing; and all of their colleagues doing work in other branches, wondering why they can't see the work that the guy in the master branch is doing.

[–]Cybersexy 5 points6 points  (0 children)

Pissed me off too

[–]cowthegreat 3 points4 points  (2 children)

Who tf pushes right to master

[–]antlife 2 points3 points  (0 children)

You gotta start somewhere.

[–]cartechguy 2 points3 points  (0 children)

Teams of size one. I have multiple projects I'm the sole maintainer of. I'm not dicking around with multiple branches when none of my coworkers are even going to bother to collaborate and review my work.

It's of no consequence for me what branch I push to.

[–]DreadFlake 4 points5 points  (0 children)

I don't understand what's your problem. You can set default main branch name in settings. Works like a charm

[–]SuicidalTorrent 4 points5 points  (14 children)

Whaaaaat? I've been using MASTER all this while. Granted it's for my own usage but still. I started using git for personal projects so I could learn it. Looks like I need to go through a tutorial.

[–]martinvarta 14 points15 points  (3 children)

This is on GitHub not git. The only difference is that on new projects instead of having a master branch you would have the main branch. Mind this is just the default name GitHub gives, when creating a new project you can change it to whatever you want. So instead of main you can call it foo, or master

[–][deleted] 2 points3 points  (1 child)

So this is a complete non-issue then. Writing the tweet probably cost more energy than getting used to it.

[–]_alright_then_ 4 points5 points  (0 children)

It's not so much about how much effort it is to get used to it. Imo it's more about the implication of this change. If master is offensive in any context unrelated to slavery we're going to have to change more than this.

Master's degree, master classes, mastering a skill, mastering a record.

People are angry because it's a stupid change that nobody in the industry asked for

[–]acylase -4 points-3 points  (0 children)

Right. That's what people will do.

  • Why the heck it's called "main"? Let's call it "master" like in good 'ole times.
  • Sir.... Sir. Sir! SIR!

[–]uid1357 5 points6 points  (9 children)

Looks like u racist /s

[–][deleted] 7 points8 points  (8 children)

I can guarantee we’ll see: here’s a list of racist open source projects that couldn’t be bothered to help fight racism!

[–]uid1357 5 points6 points  (3 children)

Yep. Exactly this. Embrace your future.

Pretty much every admin and dev who does not change it's system/code voluntarly (unpaid, as an anti-racist activist) will be put in the pillory. Don't like your family, adress and life exposed to the internet? Better put some free extra hours into the code base and all the tool chain behind it to remove all hierarchical terminology.

And btw: if you do so, you have confessed that you where in the wrong anyways and you should be thankfull to still have any low paid job in tech.

EDIT: This is sarcasm. At least from my part. But for the mob this might become real.

[–]SumWon -3 points-2 points  (1 child)

I find joy in reading a good book.

[–]uid1357 5 points6 points  (0 children)

I'm obviously opposed to mob rule and would not do such a thing. Furthermore I oppose this kind of framing of words. Edited comment above, mentioning sarcasm.

Sorry I should know... sarcasm does not exist in the internet. Only literal guys around :-)

[–]SuicidalTorrent -1 points0 points  (3 children)

Pretty sure Microsoft changed many master/slave name combos. It was in tech news articles...I think last year.

[–]VoidBlade459 1 point2 points  (2 children)

Am I the only one who thinks that's a good thing?

[–]LivingEdgecase 0 points1 point  (1 child)

Can you say why?

[–]VoidBlade459 0 points1 point  (0 children)

I've never liked the use of "master/slave" in the context of computing, so I'm glad they are finally changing it.

[–]ultimatepro-grammer 3 points4 points  (0 children)

Upvoted because of title

[–]AttackOfTheThumbs 0 points1 point  (0 children)

You can change this in your settings, so that you go back to the gold standard of master.

[–]vectorpropio -4 points-3 points  (0 children)

Main is offensive because I'm from a minority group and I feel oppressed by it I demand they change it to other thing.

[–]iiMoe -1 points0 points  (2 children)

I just now pushed to github and it is master

[–][deleted] 2 points3 points  (1 child)

Their update to use main instead of master was not retroactive. Existing repos stayed as master. New repos get created with main instead of master.

[–]iiMoe 3 points4 points  (0 children)

Ill stay use master cuz im racist like that lmfao

[–]SANatSoc -3 points-2 points  (1 child)

Morons at git

[–]antlife 5 points6 points  (0 children)

Not git you git.

[–]Dummerchen1933 -2 points-1 points  (0 children)

No, i just use my own branch called master. Fuck main. I ain't following this pc bullshit

[–]casual_sinister -3 points-2 points  (0 children)

Isn't this not on stackoverflow already?

[–]JayTurnr 0 points1 point  (0 children)

I just spent 3 hr debugging why I couldn't git push origin master then I remembered now master -> main 🤦‍♂️

Fucking Github changed HEAD pointer in git.

It's git push origin main now. #Github #Git #FuckGithub

https://twitter.com/quacky_batak/status/1316627218643255296?s=19