赞
踩
积薄而为厚,聚少而为多
注:查看的都是当前分支的代码量!
查看个人代码量
先用idea打开要查看的项目,在打开终端输入命令:
git log --author="作者" --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 版权所有,并保留所有权利。