Created
September 28, 2018 09:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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