Skip to content

Instantly share code, notes, and snippets.

@lonnen
Created November 10, 2011 00:25
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.

Uh oh!

There was an error while loading. Please reload this page.

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