I accidentely said git rm -r .. How do I recover from this?
I did not commit.
I think all files were marked for deletion and were also physically removed from my local checkout.
EDIT: I could (if I knew the command) revert to the last commit. But it would be a lot better if I could just undo the git rm -r .. Because I am not really sure what I did after the last commit and before the git rm -r ..
-ftogit rmgit won't have removed any files that had staged or unstaged changes so agit reset; git checkout .should recover everything. - CB Baileygit restore:git restore -s@ -SW -- .. See my answer below. - VonC