统计个人所有分支提交的记录
git log --all --author='ningdalong' --numstat --pretty=tformat: --since=2023-02-01 --until=2023-02-28 | awk '{ adds += $1; subs += $2; loc += $1 + $2} END {printf "新增行数: %s, 删除行数 : %s, 总行数: %s\n", adds, subs, loc}'
统计个人当前分支提交的记录
git log --author='ningdalong' --numstat --pretty=tformat: --since=2023-02-01 --until=2023-02-28 | awk '{ adds += $1; subs += $2; loc += $1 + $2} END {printf "新增行数: %s, 删除行数 : %s, 总行数: %s\n", adds, subs, loc}'
统计个人指定分支提交的记录(分支名)
git log master --author='ningdalong' --numstat --pretty=tformat: --since=2023-02-01 --until=2023-02-28 | awk '{ adds += $1; subs += $2; count += $1 + $2} END {printf "新增行数: %s, 删除行数 : %s, 总行数: %s\n", adds, subs, count}'