指定作者的提交统计
git log --since="2025-11-02" --until="2025-11-05 23:59:59" --author="你的名字" --shortstat --oneline
贡献者排行榜
git log --since="2025-11-02" --until="2025-11-05 23:59:59" --all --format='%aN' | sort | uniq -c | sort -rn
时间段内的总体代码变更量
git diff --shortstat $(git log --since="2025-11-02" --until="2025-11-05 23:59:59" --format=%H | tail -1)^ HEAD
时间段内所有人的代码行数统计
git log --since="2025-11-02" --until="2025-11-05 23:59:59" --numstat --pretty=tformat: | awk '{add+=$1; del+=$2} END {print "新增行数:", add, "\n删除行数:", del, "\n净增加:", add-del}'
指定作者的代码行数统计
git log --since="2025-11-02" --until="2025-11-05 23:59:59" --author="你的名字" --pretty=format: --numstat | awk '{add+=$1; del+=$2} END {print "新增行数:", add, "\n删除行数:", del, "\n净增加:", add-del}'