命令如下
git log --since=2021-01-01 --until=2021-12-31 --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 }'
命令如下
git log --since=2021-01-01 --until=2021-12-31 --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 }'
本文标题:Git--MAC 统计代码行数
本文链接:https://www.haomeiwen.com/subject/rxebcrtx.html
网友评论