git查看代码提交commit数量
·
gitlab查看代码提交数量?_gitlab查看提交代码行数-CSDN博客
查看某个时间段内代码提交行数
git log --author="账号" --pretty=tformat: --since=开始时间 --until=结束事件 --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s,total lines: %s\n", add, subs, loc }'
//账号写自己的gitlab账号
//开始时间、结束时间格式为2023-04-19
查看某个时间段内代码提交次数
git log --after="开始时间" --before="结束时间" --pretty='%aN' | sort | uniq -c | sort -k1 -n -r
//开始时间、结束时间格式:2023-01-01 00:00:00
例如:
git log --after="2023-11-28 00:00:00" --before="2024-02-23 00:00:00" --pretty='%aN' | sort | uniq -c | sort -k1 -n -r
更多推荐
所有评论(0)