List commits with file is inside
git log --oneline --follow -- path/to/fileThe result looks like:
8266b41 Removing file
fb4d75c Another commit
Copy, for example 8266b41, and restore file like that:
git checkout 8266b41^ -- path/to/file🚀
List commits with file is inside
git log --oneline --follow -- path/to/fileThe result looks like:
8266b41 Removing file
fb4d75c Another commit
Copy, for example 8266b41, and restore file like that:
git checkout 8266b41^ -- path/to/file🚀