this post was submitted on 06 Oct 2025
843 points (96.8% liked)

Programmer Humor

26932 readers
1289 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
 

Yeah learned this the hard way.

(page 2) 50 comments
sorted by: hot top controversial new old
[–] buddascrayon@lemmy.world 4 points 1 week ago

"Shit, does this mean I have to re-install the operating system again. Fuck me!!!!"

I have uttered this sentence too many times to count.

[–] elbiter@lemmy.world 4 points 1 week ago

I just commit and push in the same line, all the time. Whenever I have to undo a change, I go to GitHub/Gitlab browse for the previous version and paste from there.

I definitely know is not the intended way to do this, but it works for me and has saved my ass several times.

[–] Lushed_Lungfish@lemmy.ca 3 points 1 week ago

Oi ya gits, everyone knows da best way to fix a mistake is ta smash it's zoggin' 'ead in!

[–] Fenrisulfir@lemmy.ca 2 points 1 week ago* (last edited 1 week ago) (1 children)

git push origin main -f

You need to assert dominance

load more comments (1 replies)
[–] Drewfro66@lemmygrad.ml 2 points 1 week ago

Never admit your mistakes. Always commit.

[–] zd9@lemmy.world 2 points 1 week ago

I have a full repo that mirrors any actual code I have, just so I can practice the very git operations with dummy files before doing it on a real codebase. It has come in handy many many times already and I highly recommend it.

load more comments
view more: ‹ prev next ›