Skip to content

Instantly share code, notes, and snippets.

@cbedoy
Created August 13, 2017 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbedoy/e016d96aba2ab06ec311b0b6ec8f3bdc to your computer and use it in GitHub Desktop.
Save cbedoy/e016d96aba2ab06ec311b0b6ec8f3bdc to your computer and use it in GitHub Desktop.
git_report.sh
git log --author=$USER --shortstat $BRANCH | \
awk '/^ [0-9]/ { f += $1; i += $4; d += $6 } \
END { printf("%d files changed, %d insertions(+), %d deletions(-)", f, i, d) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment