After git add . I ran git rm -r -f .,and all my local files were deleted accidentally.
After recovering them with git fsck --lost-found I
1) rm -r -f . should abort without effect probably you did rm -r -f * and it does not delete the .git directory
2) this is confirmed by the fact that the command git fsck --lost-found did not abort
in this situation (deletion of just the working directory) the correct command to recover as much as possible is:
git checkout-index -af : this copies the version currently on the index (the one that you just put with git add .) to the working directory