git统计代码提交

2020-01-01后,代码提交前10名

// 2020-01-01后,代码提交前10名,代码行数统计
git log --since="2020-01-01" --pretty='%aN' | sort | uniq -c | sort -k1 -n -r | head -n 10

导出所有commit日志

git log > git.log

统计某人提交代码行数

git log --author="quzhe" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -

你可能感兴趣的:(git)