TIL – Find the git commit that deleted a file in a git repository

The below command filters commits that deleted file using diff-filter from git log git log --diff-filter=D -- deleted_file.example It takes advantage of the flag diff-filter.