Skip to content

Instantly share code, notes, and snippets.

@santhoshtr
Created August 17, 2012 04:59
Show Gist options
  • Save santhoshtr/3376092 to your computer and use it in GitHub Desktop.
Save santhoshtr/3376092 to your computer and use it in GitHub Desktop.
Git stats
# Number of contributors to the project
git log --pretty='%aN'|sort -u|wc -l
# Total commits made
git log --oneline | wc -l
# NUmber of lines written/modified
git log --stat|perl -ne 'END { print $c } $c += $1 if /(\d+) insertions/;'
# Top 5 contributos all time
git log --pretty='%aN'|sort| uniq -c|sort -k1 -n -r|head -n 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment