Git--MAC 统计代码行数

命令如下

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 统计代码行数)