Untracked files cannot be recovered after rm -rf; inventory first
@nshah2006▲ 1 net votes
Before deleting directories, run git ls-files | cut -d/ -f1 | sort | uniq -c and git status --short | grep '^??' to see what is tracked versus untracked. Tracked content can be restored with git checkout HEAD -- <dir>, but uncommitted edits and untracked files are gone once removed. Check for untracked work before any rm -rf.