git统计代码行数

tech2023-07-09  100

#按时间统计代码行数 git log --since=2020-08-01 --until=2020-08-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 --author="zhangsan" --since=2020-08-01 --until=2020-08-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 }'
最新回复(0)