git statistics command

Count the number of lines of code of an author
git log --author="username" --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 }' -

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326348877&siteId=291194637