git restore all deleted files code example
Example 1: recover lost file git
git log --diff-filter=D --summary
git checkout $commit path/to/file
Example 2: git checkout all deleted files
git checkout -f
git log --diff-filter=D --summary
git checkout $commit path/to/file
git checkout -f