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 }' -