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 }' -
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章