Skip to content

Instantly share code, notes, and snippets.

@jhuttner jhuttner/git-stats
Created Mar 20, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.