git log HEAD~1..HEAD --author="$(git config --get user.name)" --pretty=tformat: --numstat | awk ‘{ add += $1 ; subs += $2 ; loc += $1 + $2 } END { printf "(HEAD~1, HEAD] 新增行数: %s 删除行数 : %s 总行数: %s\n",add,subs,loc }‘
参考:https://www.cnblogs.com/bellkosmos/p/5923439.html
https://blog.csdn.net/qq_38152806/article/details/90210927
原文地址:https://www.cnblogs.com/0616--ataozhijia/p/11602738.html
时间: 2024-11-11 10:12:55