this post was submitted on 11 Oct 2025
466 points (99.2% liked)

Programmer Humor

26817 readers
3181 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 2 years ago
MODERATORS
top 48 comments
sorted by: hot top controversial new old
[–] magic_lobster_party@fedia.io 2 points 23 minutes ago

Keep your commits small. Merge often. That will reduce the likelihood of terrible merge conflicts.

If you’re not sharing your work with your team mates for a long time, then you’re setting yourself up for trouble.

[–] dream_weasel@sh.itjust.works 3 points 29 minutes ago

No merges allowed. Rebase only.

[–] dubyakay@lemmy.ca 1 points 27 minutes ago* (last edited 24 minutes ago)

Google gives you results based on your prior search history.

[–] echodot@feddit.uk 1 points 36 minutes ago* (last edited 35 minutes ago)

See I wasn't really going to kill myself today, but the thought of dialing that long ass number is just to much.

[–] JasonDJ@lemmy.zip 1 points 1 hour ago
[–] SkunkWorkz@lemmy.world 22 points 5 hours ago

“Proper way to commit after merge conflict” sounds like a robot trying to save a relationship after a bad sex experience

[–] Kolanaki@pawb.social 9 points 4 hours ago (1 children)

calls suicide hotline to ask for tech support

[–] CanadaPlus@lemmy.sdf.org 2 points 2 hours ago

Don't hold your breath, they're pretty mid at their actual job.

[–] cupcakezealot@piefed.blahaj.zone 21 points 6 hours ago (1 children)
git reset --hard <commit-hash>  
git push -f origin main  

i didn't see anything, officer

[–] martinb@lemmy.sdf.org 10 points 5 hours ago (2 children)

You should be forcibly kept away from production systems...

[–] joyjoy@lemmy.zip 2 points 1 hour ago

Never use --force. Always use --force-with-lease.

[–] henfredemars 6 points 4 hours ago (1 children)

We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.

[–] gravitas_deficiency@sh.itjust.works -1 points 2 hours ago* (last edited 2 hours ago)

It’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”

[–] peoplebeproblems@midwest.social 8 points 6 hours ago (1 children)

Been there too OP. Not a good place.

It's usually easier to find another job, it will reset your mind, and fear won't be driving you.

Or you could just commit what you have, comment "YOLO" and auto resolve conflicts and push.

[–] tomjuggler@lemmy.world 1 points 18 minutes ago

I prefer to just delete the whole .git and start a new repository with the new version. We are pivoting the project, new name and new repo

[–] Antagnostic@lemmy.world 3 points 5 hours ago* (last edited 5 hours ago)

If you git help, you could hash things out, rebase your commitments, and push forward to a better life. Then again I could just be cherry picking things.

[–] Cevilia@lemmy.blahaj.zone 74 points 10 hours ago (3 children)

Holy fuck, that's a long phone number

[–] j4k3@piefed.world 43 points 9 hours ago (2 children)

It is a duplicated repeating error because this clownshow of a website is managed by squirrels and ducks. 1-800-273-8255 would be a valid US number. Doubling 273-8255 is not, but probably vibe coded under management that should be purged by these results.

[–] GreenShimada@lemmy.world 17 points 8 hours ago (1 children)

Hey! Don't insult ducks like that! This clownshow website would be about 20% better if ducks were involved.

[–] j4k3@piefed.world 3 points 8 hours ago

I don't know. I was cursing at ducks an hour ago while trying to remember how to spell diatomaceous earth and the ducks were total fuckwits.

[–] Whostosay@sh.itjust.works 4 points 8 hours ago (2 children)
[–] j4k3@piefed.world 10 points 8 hours ago (1 children)

intentions unclear. Am I calling For or Against

[–] Whostosay@sh.itjust.works 6 points 8 hours ago

Your call.

Buh dun tissss

[–] locuester@lemmy.zip 4 points 8 hours ago (1 children)
[–] Whostosay@sh.itjust.works 4 points 8 hours ago (1 children)

Lmao not willing to do the phone math rn, does that actually fit the numbers?

[–] locuester@lemmy.zip 2 points 8 hours ago (1 children)
[–] Whostosay@sh.itjust.works 2 points 7 hours ago

That could be platformed.

WAIT YOU HAVE SO MUCH TO LIVE FOR, have you tried ape talk?

Well, I can't say that I have.

[–] Catoblepas@piefed.blahaj.zone 36 points 9 hours ago (2 children)

Well, that’s easy to remember! 0118, 999, 881, 999, 119, 725...3.

[–] serpineslair@lemmy.world 3 points 5 hours ago

The irony is, I remember it perfectly.

[–] fedditter@feddit.org 15 points 9 hours ago* (last edited 9 hours ago) (1 children)

Did you see that ludicrious display last night??

[–] OpenStars@piefed.social 12 points 9 hours ago (1 children)

Yes I did. Just put it over there with the rest of the fire.

[–] kambusha@sh.itjust.works 6 points 8 hours ago (1 children)

Your name is Morris Moss, is it not?

[–] fedditter@feddit.org 4 points 7 hours ago (1 children)

Your name is Morris Moss, is it not?

[–] fedditter@feddit.org 3 points 7 hours ago
[–] guillem@aussie.zone 10 points 9 hours ago (1 children)

It's easier to remember if you sing it.

[–] hakunawazo@lemmy.world 2 points 7 hours ago* (last edited 7 hours ago)

A B C D E F G, I hang a noose on this tree. 𝅘𝅥𝅮𝆕

But for real: You should reset hard the head of the git branch, not yours.

[–] jaschop@awful.systems 29 points 10 hours ago (1 children)

It's never too late to git merge --abort!

[–] TheFriendlyDickhead@feddit.org 20 points 9 hours ago (1 children)

But abortion is murder?!?!?!?!?

🎶 every branch is sacred 🎶

[–] Anafabula@discuss.tchncs.de 6 points 7 hours ago

Jujutsu (which is compatible with git) has a nice conflict resolution flow that doesn't break you workflow.

Conflicts are encoded into the commits, so that there is never a weird in between state that you have to deal with immediately before being able to do anything else.
Then you can use Jujutsu's easier history manipulation to resolve the conflict in the conflicted commits.

https://steveklabnik.github.io/jujutsu-tutorial/branching-merging-and-conflicts/conflicts.html

And you could always jj undo if you did something you didn't want to.

[–] kubica@fedia.io 14 points 10 hours ago (1 children)
[–] errer@lemmy.world 8 points 6 hours ago* (last edited 6 hours ago) (1 children)

git never --gonna-give-you-up

git never --gonna-let-you-down

[–] mavu@discuss.tchncs.de 2 points 6 hours ago* (last edited 6 hours ago) (1 children)

I don't get why people have such problems with this they even make memes about it.

Have you people never merged anything by hand or what? It's really not hard.

[–] mere@lemmy.blahaj.zone 1 points 4 hours ago (2 children)

it's fine for simple merge conflicts but it quickly gets messy when the two branches are trying to do opposite things to the same code

[–] tomjuggler@lemmy.world 1 points 16 minutes ago

Or 3 branches..

[–] dream_weasel@sh.itjust.works 1 points 30 minutes ago

Sounds like agreement and resolution are required pre merge conflict resolve.

[–] BCsven@lemmy.ca 2 points 7 hours ago

Commit branch...I see your thinking of hanging yourself, here is a link to tying a noose