git 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 case rm -rf probably would be the better option
edit: did a quick edit on the meme to change it to rm -rf since it makes more sense
rm - 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, and git rm won’t remove that.
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.Thanks
Never heard of it, makes total sense, but I’d guess 95% of developers just nuke the directory raw.
That’s the joke, yes.