FindDeletedFileInGit

nicolaw 11th December 2019 at 11:24am
Git

git log --full-history -- [file path] shows the changes of a file, work even if the file was deleted.

git log --full-history  -- my/deleted/file.txt

Add the -1 argument to show the last (deletion) commit for the file.

git log --full-history -1 -- my/deleted/file.txt