Skip to content

Instantly share code, notes, and snippets.

@benvium
Created October 16, 2014 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benvium/2f34ae3522be4ce8c2b2 to your computer and use it in GitHub Desktop.
Save benvium/2f34ae3522be4ce8c2b2 to your computer and use it in GitHub Desktop.
Git command to list number of changes to .h and .m files in the last month by a particular user Extension of http://stackoverflow.com/questions/2528111/how-can-i-calculate-the-number-of-lines-changed-between-two-commits-in-git
git log --numstat --author="Ben Clayton" --since "1 month" -- *.m *.h | 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