Skip to content

Instantly share code, notes, and snippets.

@5818959
Created August 24, 2017 08:06
Show Gist options
  • Save 5818959/b9f392d75ea2ca0d09cb63bf645bc666 to your computer and use it in GitHub Desktop.
Save 5818959/b9f392d75ea2ca0d09cb63bf645bc666 to your computer and use it in GitHub Desktop.
Git diff between two commits filtered by files extension
# 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