Skip to content

Instantly share code, notes, and snippets.

@aborilov
Created May 18, 2016 11:39
Show Gist options
  • Save aborilov/3da5a26f94cebd6cfc7142af064ad8af to your computer and use it in GitHub Desktop.
Save aborilov/3da5a26f94cebd6cfc7142af064ad8af to your computer and use it in GitHub Desktop.
Count total lines changed by author in git
git log --author="paborilov@cloudlinux.com" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment