Skip to content

Instantly share code, notes, and snippets.

@lonnen
Created November 10, 2011 00:25
Show Gist options
  • Save lonnen/1353670 to your computer and use it in GitHub Desktop.
Save lonnen/1353670 to your computer and use it in GitHub Desktop.
Git repo summary stats for a particular author
git log --shortstat --author "AUTHOR NAME" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed: ", files, "\nlines inserted: ", inserted, "\nlines deleted: ", deleted}'
@lonnen
Copy link
Author

lonnen commented Nov 10, 2011

Remember to change AUTHOR NAME. Check the git log or your config if you're not sure what to use there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment