赞
踩
步骤:
获取某时间区间的代码修改量
git log --since=2021-12-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 --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 }'
如图:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。