this post was submitted on 03 Jul 2025
115 points (94.6% liked)
Programmer Humor
36992 readers
387 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do you at least have some local commits to get back to? Or did your job remove the .git folder as well? ๐
also removed .git
You have backups? Right?
what garbage cleanup tool gets rid of dotfiles, especially .git? if you let us know we can learn to avoid it
shutil.remove_tree(BASE_DIR)
instead ofshutil.remove_tree(TEMP_DIR)
inside of tear down codeoh, I see. well, lessons learned hopefully! :)
On top of that, the content of
.git/objects/
is write protected, so even if you gorm -r
, you'll get an additional warning.