git 代碼量統計

使用 git bash , 進入項目根目錄git


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

相關文章
相關標籤/搜索