Skip to content

Instantly share code, notes, and snippets.

@duncanhall
Created September 28, 2018 09:53
Show Gist options
  • Save duncanhall/6534291171e6d5adf28dfabe93e43e45 to your computer and use it in GitHub Desktop.
Save duncanhall/6534291171e6d5adf28dfabe93e43e45 to your computer and use it in GitHub Desktop.
Search for a string across git diff changes with file path and line numbers
git diff --name-only --diff-filter=MA | xargs grep 'SEARCH TERM' -rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment