r/ProgrammerHumor • • Jun 16 '20

Meme Meanwhile.

Post image
50.6k Upvotes

2.9k comments sorted by

View all comments

31

u/frosted-mini-yeets Jun 16 '20

This is fucking retarded. And with all the complexities of git repositories already, I simply can't see a local branch named master being pushed to GitHub who would then what? Display it as main? How the fuck would this work without fucking up your repo. I've hated git blame for a while now and thought it should be more unbiased like git who but it's well ingrained and shouldn't really be changed at this point. Fuck Microsoft and their shitty politically correct decisions.

4

u/jack_tukis Jun 16 '20

git push origin [local branch name]:[remote branch name]

So in your example:

git push origin master:main

You can also use this syntax to delete remote branches, so be careful. For example, this would delete the remote branch "stage" by pushing nothing into it:

git push origin :stage

Should be a lot of fun teaching my team this stuff. No mistakes will be made.

1

u/frosted-mini-yeets Jun 16 '20

This doesn't sound any less stupid.

1

u/jack_tukis Jun 17 '20

You're not wrong...

-7

u/[deleted] Jun 16 '20

[removed] — view removed comment

6

u/frosted-mini-yeets Jun 16 '20

What the fuck is this comment supposed to even mean.

2

u/-AcodeX Jun 16 '20

I thought it was a hilarious troll but maybe it's talking in earnest?

0

u/edoras176 Jun 16 '20

Yeah, conservatives are usually pretty slow on the uptake.