Created
August 24, 2017 08:06
-
-
Save 5818959/b9f392d75ea2ca0d09cb63bf645bc666 to your computer and use it in GitHub Desktop.
Git diff between two commits filtered by files extension
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
# full diff | |
git diff <SHA1> <SHA1> -- `find . -name '<pattern>'` | |
# only file names | |
git diff <SHA1> <SHA1> --name-status -- `find . -name '<pattern>'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment