this post was submitted on 11 Oct 2025
661 points (99.1% liked)

Programmer Humor

26827 readers
2146 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 50 comments
sorted by: hot top controversial new old
[–] aliser@lemmy.world 2 points 4 hours ago (1 children)

git is like a minefield. stray away even a little bit from standard path and you are done for. I had git multiple times throw some obscure errors at me when trying some commands and then trying to undo/recover. how's "undo" is not a git command I don't understand.

[–] nialv7@lemmy.world 1 points 57 minutes ago

undo is a jj command ;)

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

in life you commit to many things. you commit to yourself, to your partner, to happiness, to legacy.

when we die, is that like a push to origin?

when we die, do our commits all go to the big repo in the sky?

is god the maintainer? when you pray is that like a bug report?

so many questions...

[–] schnurrito@discuss.tchncs.de 7 points 9 hours ago

I remember when similar screenshots circulated for how to tell if i am running jdk or jre, which is even more surprising.

[–] magic_lobster_party@fedia.io 7 points 9 hours ago (1 children)

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.

[–] SpaceCowboy@lemmy.ca 3 points 9 hours ago

Also rebase is usually better than merge.

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

No merges allowed. Rebase only.

[–] dream_weasel@sh.itjust.works 2 points 6 hours ago

And if you can't figure out how to rebase, I definitely don't want you solving your own merge commit!

[–] echodot@feddit.uk 5 points 10 hours ago* (last edited 10 hours ago)

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

[–] SkunkWorkz@lemmy.world 29 points 15 hours ago

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

[–] dubyakay@lemmy.ca 3 points 10 hours ago* (last edited 9 hours ago)

Google gives you results based on your prior search history.

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

i didn't see anything, officer

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

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

[–] henfredemars 9 points 14 hours ago (2 children)

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

load more comments (2 replies)
[–] joyjoy@lemmy.zip 3 points 11 hours ago (1 children)

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

[–] enbiousenvy@lemmy.blahaj.zone 2 points 9 hours ago (2 children)

I've mistyped that a couple of times to be --force-with-leash

[–] joyjoy@lemmy.zip 4 points 7 hours ago

git push origin master --force-with-leash

Don't do that to your master.

[–] cupcakezealot@piefed.blahaj.zone 2 points 7 hours ago* (last edited 7 hours ago) (1 children)

only do that in puppygit (with consent)

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

Holy fuck, that's a long phone number

[–] j4k3@piefed.world 57 points 19 hours ago (9 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 24 points 18 hours ago (1 children)

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

load more comments (1 replies)
load more comments (8 replies)
[–] Catoblepas@piefed.blahaj.zone 40 points 19 hours ago (2 children)

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

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

Did you see that ludicrious display last night??

[–] OpenStars@piefed.social 14 points 18 hours ago (1 children)

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

[–] kambusha@sh.itjust.works 7 points 18 hours ago (2 children)

Your name is Morris Moss, is it not?

load more comments (2 replies)
[–] serpineslair@lemmy.world 4 points 14 hours ago

The irony is, I remember it perfectly.

[–] guillem@aussie.zone 10 points 19 hours ago (1 children)

It's easier to remember if you sing it.

load more comments (1 replies)
[–] Kolanaki@pawb.social 13 points 14 hours ago (1 children)

calls suicide hotline to ask for tech support

[–] CanadaPlus@lemmy.sdf.org 2 points 11 hours ago* (last edited 9 hours ago)

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

[–] 1984@lemmy.today -2 points 6 hours ago* (last edited 6 hours ago)

So cool, I havent seen an ad like this in at least a decade. I use something called an ad blocker and also I switched to Kagi, so.... :)

[–] jaschop@awful.systems 33 points 19 hours ago (1 children)

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

[–] TheFriendlyDickhead@feddit.org 22 points 18 hours ago (1 children)

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

🎶 every branch is sacred 🎶

[–] peoplebeproblems@midwest.social 8 points 15 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 2 points 9 hours 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

[–] Anafabula@discuss.tchncs.de 9 points 17 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 15 points 19 hours ago (1 children)
[–] errer@lemmy.world 9 points 16 hours ago* (last edited 16 hours ago) (1 children)

git never --gonna-give-you-up

git never --gonna-let-you-down

[–] JasonDJ@lemmy.zip 1 points 11 hours ago
[–] Antagnostic@lemmy.world 3 points 14 hours ago* (last edited 14 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.

load more comments
view more: next ›