Skip to content

Instantly share code, notes, and snippets.

@joecannatti
Created August 13, 2013 20:29
Show Gist options
  • Save joecannatti/6225360 to your computer and use it in GitHub Desktop.
Save joecannatti/6225360 to your computer and use it in GitHub Desktop.
Bash one liner to show what percentage of total commits in a codebase where made by all committers.
git log | grep ^Author | awk '{print $NF}' | sort | uniq -c | sort | awk "{print (\$1/$(git log | grep ^Author | wc -l)) \" \" \$2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment