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

Programmer Humor

26827 readers
2469 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
[–] BootLoop@sh.itjust.works 4 points 4 days ago (1 children)

Does deleting the repo off disk and redownloading from remote considered recovering? If so I'm a git expert.

[–] toynbee@lemmy.world 5 points 4 days ago (1 children)

Delete? Never.

mv git_repo git_repo.bad
[–] BootLoop@sh.itjust.works 3 points 4 days ago (1 children)

I do this sometimes but then I forget about it and then node_modules in each repo fills my SSD.

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

I mostly only use git at work and I guess I've never had the same work machine long enough to worry about this. It helps that each of our repos is fairly small. At least the ones I touch.