Recover staged but not committed files after ‘git rm -rf’
(update) Use git fsck instead, it is a builtin command for retrieving files you have once added to git repository. git fsck –lost-found –unreachable after the command processing, retrieved files will be placed at .git/lost-found/other, with file name of a sha256 hash. Although the original name is still lost, the content will be back. You … Read more