使用 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