121
submitted 3 weeks ago by mat@jlai.lu to c/programmerhumor@lemmy.ml

As the title says. I put the wrong value inside a clean up code and I wiped everything. I did not push any important work. I just want to cry but at least I can offer it to you.

Do not hesitate to push even if your project is in a broken state.

you are viewing a single comment's thread
view the rest of the comments
[-] meme_historian@lemmy.dbzer0.com 7 points 3 weeks ago

Do you at least have some local commits to get back to? Or did your job remove the .git folder as well? ๐Ÿ‘€

[-] mat@jlai.lu 8 points 3 weeks ago
[-] MyNameIsRichard@lemmy.ml 3 points 3 weeks ago

You have backups? Right?

[-] ReversalHatchery@beehaw.org 1 points 3 weeks ago

what garbage cleanup tool gets rid of dotfiles, especially .git? if you let us know we can learn to avoid it

[-] mat@jlai.lu 2 points 3 weeks ago

shutil.remove_tree(BASE_DIR) instead of shutil.remove_tree(TEMP_DIR) inside of tear down code

[-] ReversalHatchery@beehaw.org 1 points 3 weeks ago

oh, I see. well, lessons learned hopefully! :)

[-] msherburn33@lemmy.ml 1 points 3 weeks ago

On top of that, the content of .git/objects/ is write protected, so even if you go rm -r, you'll get an additional warning.

this post was submitted on 03 Jul 2025
121 points (94.8% liked)

Programmer Humor

37438 readers
8 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS