Skip to content

Instantly share code, notes, and snippets.

@LC43
Last active January 20, 2020 17:38
Show Gist options
  • Save LC43/463bcc70f4e2e62e66478f830532e34d to your computer and use it in GitHub Desktop.
Save LC43/463bcc70f4e2e62e66478f830532e34d to your computer and use it in GitHub Desktop.
git diff between two branches, ignoring some paths
## note that there's two notations: :(exclude) or :!
git diff <branch1> <branch2> -- ':(exclude)*/vendor/*' ':(exclude)*/assets/*' ':!*/build/*' ':!*.lock'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment