赞
踩
(1)打开Git终端,进入项目的根目录
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 }' -
find . "(" -name "*.java" ")" -print | xargs wc -l
(1)通过-name "*.后缀名"
来统计需要统计的文件
find . "(" -name "*.css" -or -name "*.js" -or -name "*.cpp" -or -name "*.vue" ")" -print | xargs wc -l
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。