--统计增删改数量 git log --remotes --format='%aN' | sort -u | while read name; do echo -en "$namet"; git log --remotes --author="$name" --pretty=tformat: --numstat --since="2023-01-01" --before="2024-01-01" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %sn", add, subs, loc }' -; done >ccc.csv git log --remotes --format='%aN' | sort -u | while read name; do echo -en "$namet"; git log --remotes --author="$name" --pretty=tformat: --numstat --since="2023-01-01" --before="2024-01-01" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "%s, %s, %sn", add, subs, loc }' -; done >logs.csv --统计明细 git log --remotes --date=iso --pretty=format:'"%h","%an","%ad","%s"' --since="2023-01-01" --before="2024-01-01" >log_detail.csv
git统计提交信息的代码
2024-02-02
68
0
本文作者: 折雨的天空
原文链接: git统计提交信息的代码
版权声明: 本站所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
免责声明: 文中如涉及第三方资源,均来自互联网,仅供学习研究,禁止商业使用,如有侵权,联系我们24小时内删除!