Skip to content

Instantly share code, notes, and snippets.

@brancz
Created December 14, 2015 13:45
Show Gist options
  • Save brancz/2a7a1a65d5e0d66ece99 to your computer and use it in GitHub Desktop.
Save brancz/2a7a1a65d5e0d66ece99 to your computer and use it in GitHub Desktop.
git accumulated stats
git diff --numstat --pretty="%H" master | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment