Add command to get history of deleted file

This commit is contained in:
James Skemp 2024-03-06 23:06:22 -06:00
parent 95465cd938
commit 57f12d2559
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ git log --follow -p <file>
# View commits that have deleted files.
git log --diff-filter=D --summary
# View commits that changed a file, even if deleted.
git log --all -- <file>
# View all deleted files.
git log --all --pretty=format: --name-only --diff-filter=D | sort -u