Skip to content

Instantly share code, notes, and snippets.

@102
Created March 15, 2017 08:12
Show Gist options
  • Save 102/ebc4ba2ac7db7aaf29dcbb92d2ed6deb to your computer and use it in GitHub Desktop.
Save 102/ebc4ba2ac7db7aaf29dcbb92d2ed6deb to your computer and use it in GitHub Desktop.
Git additions/deletions stats by user
git log --pretty=format: --shortstat --no-merges --author=$1 \
| sed '/^$/d'\
| awk -F' ' '{s1+=$4;s2+=$6}END{printf "additions: %s; deletions: %s\n",s1,s2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment