Since it is no longer in the repository, I can't do
git log <filename>
I can run
git log --diff-filter='D|R' <directory_that_contained_it>
but that is too much information and grepping it does not seem to list the file I'm looking for.
Listing all the deleted files in all of git history can be done by combining git log with --diff-filter .
On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.
You can use git diff --name-status, that will show you files that where added, modified and deleted.
git log -1 --stat -- <path/to/file>
I put the --stat
in there so that you can verify that the file was deleted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With