We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git log --author="$(git config --get user.name)" --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 }' -
输出
added lines: 31272 removed lines : 2680 total lines: 28592
git log --author="$(git config --get user.name)" --pretty=tformat: --numstat -- . ":(exclude)src" | awk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }' -
added lines: 7225 removed lines : 160 total lines: 7065
The text was updated successfully, but these errors were encountered:
No branches or pull requests
全部统计
输出
added lines: 31272 removed lines : 2680 total lines: 28592
统计部分(排除某些文件夹)
输出
added lines: 7225 removed lines : 160 total lines: 7065
The text was updated successfully, but these errors were encountered: