Skip to content

Instantly share code, notes, and snippets.

@SinisterLight
Created February 28, 2014 11:20
Show Gist options
  • Save SinisterLight/9269416 to your computer and use it in GitHub Desktop.
Save SinisterLight/9269416 to your computer and use it in GitHub Desktop.
# Total Commits per author
git shortlog -sn
# Author total addition and substraction
git log --numstat --pretty="%H" --author="Sinister Light" | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
# Number of lines per author
git ls-files | xargs -n1 -d'\n' -i git blame {} | perl -n -e '/\s\((.*?)\s[0-9]{4}/ && print "$1\n"' | sort -f | uniq -c -w3 | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment