Search This Blog

Tuesday, February 3, 2015

Git - show number of project lines of code for a specific user


To see number of:

  • added lines
  • removed lines
  • total lines of code
for a specific user, use the following:


git log --author="Name Surname" --pretty=tformat: --numstat | gawk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n", add, subs, loc }' -



1 comment:

If you like this post, please leave a comment :)