Andrew's Digital Garden

Grep-ing a git diff

To grep for a search term inside of a git diff, you can use the -G flag. This will return any files (rather than specific lines) that match the pattern.

git diff -G <search>

[[git]] [[shell]]

Grep-ing a git diff