Skip to content

Instantly share code, notes, and snippets.

@kimbo
Created September 9, 2018 17:09
Show Gist options
  • Save kimbo/a7aa17593e20cf2b079d4645f2e222fd to your computer and use it in GitHub Desktop.
Save kimbo/a7aa17593e20cf2b079d4645f2e222fd to your computer and use it in GitHub Desktop.
Get number of lines committed by a given person in a repo.
git log --author="<author_name>" --pretty=tformat: --numstat | awk '{print $1}' | grep "^[0-9]" | paste -sd+ | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment