Skip to content

Instantly share code, notes, and snippets.

@jhuttner
Created March 20, 2014 15:05
Show Gist options
  • Save jhuttner/9665834 to your computer and use it in GitHub Desktop.
Save jhuttner/9665834 to your computer and use it in GitHub Desktop.
Show commits stats by author
#!/bin/bash
comm -12 <(git ls-files | sort -n) <(find . -type f | sed -e 's/^\.\///g' | sort -n) | xargs -I {} git blame {} | perl -n -e '/^.*\((.*?)\s*[\d]{4}-[\d]{2}/; print $1,"\n"' | sort -f | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment