--统计增删改数量 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统计提交信息的代码》
发表评论