snippets/old_snippets/filtered-git-diff.md

494 B

title date draft snippet_types
filtered git diff 2021-06-25T10:49:51+02:00 false
git

How to browse git diff of two hashes but exclude some files. In this case any file with test in the name won't be in the diff.

gd xxxsha001xxx...xxxsha002xxx -- $(gd --name-only xxxsha001xxx...xxxsha002xxx | rg --invert-match test)

"gd" == "git diff", via zsh git plugin

source