Skip to content

Instantly share code, notes, and snippets.

@loganlinn
Created June 7, 2012 21:59
Show Gist options
  • Save loganlinn/2891880 to your computer and use it in GitHub Desktop.
Save loganlinn/2891880 to your computer and use it in GitHub Desktop.
git shortstat for self in last 24 hours
git log --author=`git config user.name` --shortstat --since=yesterday | grep 'files changed' | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "", files, "files changed,", inserted, "insertions(+),", deleted, "deletions(-)"}'
@Aeon
Copy link

Aeon commented Apr 12, 2013

that don't work when your commit only had 1 file changed, maybe you want egrep 'files? changed'

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