cloudtian / blogs

Summary of knowledge and blogs for every little things
3 stars 0 forks source link

git log统计代码行数命令 #52

Open cloudtian opened 2 years ago

cloudtian commented 2 years ago

git log文档

git log --author=xxx --no-merges --since=2021-08-17 --until=2021-12-24 --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}'