this post was submitted on 06 Oct 2025
833 points (96.7% liked)

Programmer Humor

26827 readers
2510 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.

you are viewing a single comment's thread
view the rest of the comments
[–] umfk@lemmy.world 9 points 4 days ago (2 children)

That is so cool. Why doesn't git have this already?

[–] kata1yst@sh.itjust.works 10 points 4 days ago

I mean, by definition, it does. It just involves parsing through the git log and a bunch of unintuitive, archaic commands.

[–] bitjunkie@lemmy.world 1 points 4 days ago

idk but my dotfiles do:

alias undo="git reset --soft HEAD~1"