Skip to content

Instantly share code, notes, and snippets.

@montmanu
Created September 17, 2016 20:04
Show Gist options
  • Save montmanu/b26f39890e13f593dd5001d872a6f457 to your computer and use it in GitHub Desktop.
Save montmanu/b26f39890e13f593dd5001d872a6f457 to your computer and use it in GitHub Desktop.
Exclude files from git diff
git status --porcelain | grep -v -E 'docs|lib' | awk '{print $2}' | xargs git diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment