© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Gergely Polonkai
You have to believe in things that are not true. How else would they become?
If you want to remove the deleted files from the output of git diff or git log -p, all you have to do is passing the --diff-filter=M argument. This will tell Git to display only modified files. Check the git-diff man page for details.
git diff
git log -p
--diff-filter=M
git-diff