Git 查看提交代码行数


1
2
git log --since="2019-11-20" --before="2019-11-21" --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
",add,subs,loc }'