Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created August 26, 2015 23:18
Show Gist options
  • Save brianjlandau/51395f332a93358fab10 to your computer and use it in GitHub Desktop.
Save brianjlandau/51395f332a93358fab10 to your computer and use it in GitHub Desktop.
One way to get a list of authors who worked on a specific directory and how many commits they contributed.
git log --pretty=%an your/path | awk -F, '{++freq[$1];}END{for (author in freq)printf "%s\t%d\n", author, freq[author];}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment