git代码行统计命令集
来源:互联网 发布:暴走漫画官方淘宝 编辑:程序博客网 时间:2024/06/10 18:03
查看git上个人代码量
git log --author="username" --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 }' -
注:将username更换成你git上个人的用户名
统计每个人的增删行数
git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --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 }' -; done
查看仓库提交者排名前 5
git log --pretty='%aN' | sort | uniq -c | sort -k1 -n -r | head -n 5
贡献者统计:
git log --pretty='%aN' | sort -u | wc -l
提交数统计:
git log --oneline | wc -l
添加或修改的代码行数:
git log --stat|perl -ne 'END { print $c } $c += $1 if /(\d+) insertions/;
0 0
- Git代码行统计命令集
- Git代码行统计命令集
- Git代码行统计命令集
- git代码行统计命令集
- Git代码行统计命令集
- git代码行统计命令集
- git统计代码量相关命令
- git 代码统计
- 统计代码行数命令
- 统计git代码提交量
- Git Stat(Git 代码提交统计)
- git 代码管理命令
- git提交命令代码
- git命令提交代码
- git 命令--上传代码
- git命令更新代码
- ruby统计git管理的代码完整版
- git代码统计-生成详细html报告
- bzoj1194: [HNOI2006]潘多拉的盒子
- DDL,DML,DCL区别
- style和theme
- Lua与C#的区别
- 算法--四种排序
- git代码行统计命令集
- if用法--Python
- Mac环境下,NodeJs配置Oracle开发环境
- 交换机Vlan中 tagged和untagged的区别
- CentOS7下Redis的安装
- CSDN-markdown编辑器语法——字体、字号与颜色
- 习近平谈社会主义核心价值观
- android文件存储openfileoutputstream
- Android 6 多用户操作系统 检测当前系统是否设置了锁屏密码