git restore file from commit
I have found a very useful command that can restore unintended deleted or modified files that have already commited:
Checkout all files
this command will restore that last commited version of file that have been deleted in cache.
For referring basic usage of
Checkout single file
git checkout version -- path/to/file