820

Yeah learned this the hard way.

you are viewing a single comment's thread
view the rest of the comments
[-] sucoiri@lemmy.world 3 points 1 day ago

Fun fact! If you added a file but never committed it you can still recover it with git fsck --lost-and-found. The changes were still added to the git object store, and by grepping through the dangling blobs you can find the object containing the changes you care about.

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

Programmer Humor

26772 readers
1405 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