Skip to content

Instantly share code, notes, and snippets.

@ajrnz
Created July 18, 2018 15:40
Show Gist options
  • Save ajrnz/f455a9f7468874e1657750478bda3fe7 to your computer and use it in GitHub Desktop.
Save ajrnz/f455a9f7468874e1657750478bda3fe7 to your computer and use it in GitHub Desktop.
Git commit stats by author
git log --all --numstat --pretty="%H" --author="Andrew Richards" --since=1.year|egrep -v "\\.(classpath|project|xml)\\}?$" | awk 'NF==3 {plus+=$1; minus+=$2} NF==1 {total++} END {printf("lines added: +%d\nlines deleted: -%d\ntotal commits: %d\n", plus, minus, total)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment