Say I\'m in a Git repository. I delete a file and commit that change. I continue working and make some more commits. Then, I find I need to restore that file.
I know
In order to restore all deleted file with Git, you can also do:
git checkout $(git ls-files --deleted)
Where git ls-files --deleted lists all deleted files and git checkout $(git command) restores the list of files in a parameter.
git ls-files --deleted
git checkout $(git command)