this post was submitted on 23 Jul 2024
444 points (96.4% liked)
Programmer Humor
19564 readers
643 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I feel dumb: Why
git rm -rf
and notrm -rf
? O.ogit rm -rf
is only usable within the scope of the git repository and removes files in the staging area and working directory but doesnt affect untracked files or .git.rm -rf
affects everything. For this caserm -rf
probably would be the better optionedit: did a quick edit on the meme to change it to
rm -rf
since it makes more senserm - rf
is the only version that makes sense, since the only reason to delete and re-clone is to recover from an unexpected.git/
state, andgit rm
won't remove that.