792
you are viewing a single comment's thread
view the rest of the comments
[-] Pacmanlives@lemmy.world 20 points 10 months ago* (last edited 10 months ago)

git commit -m “changed somethings “

git push origin master

[-] MajorHavoc@lemmy.world 19 points 10 months ago

You forgot this --force flag.

[-] jelloeater85@lemmy.world 2 points 10 months ago

Do you always have to do origin master? I've seen it where sometimes just git push works and other times not.

[-] adrian783@lemmy.world 5 points 10 months ago

uh in any actual company you almost never push to origin master. so I think it's a joke.

[-] MajorHavoc@lemmy.world 6 points 10 months ago
[-] jelloeater85@lemmy.world 4 points 10 months ago

Force push Fridays!

[-] herrvogel@lemmy.world 1 points 10 months ago

In most actually companies you can try push to origin master, but it'll likely get rejected by the repo's security policies.

[-] MajorHavoc@lemmy.world 4 points 10 months ago

I was being more evil than that, saying that if one is gonna push direct to main, might as well maximize the possible damage to everyone else's branch.

[-] jelloeater85@lemmy.world 3 points 10 months ago

Lol why not just delete the whole project from GitHub... I mean, everyone has a copy, right?😱

[-] zcoyle@programming.dev 3 points 10 months ago

where it Just Works, the branch is set up to track a remote branch

https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches

[-] TheUncannyObserver@lemmy.dbzer0.com 3 points 10 months ago

That’s part of the joke, I think. If it’s a repo more than just you use, you would almost never push directly to the main branch.

this post was submitted on 12 Dec 2023
792 points (100.0% liked)

Programmer Humor

19331 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS