Git 统计代码行数
2023-09-11 14:17:56 时间
Git 统计各成员贡献的代码行数
git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --since ==2019-12-01 --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
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 }' -
相关文章
- Git学习环境搭建和git对用户的增删改查命令
- 智慧城市-智慧城管系列-2-人流统计-PaddleDetection
- Unity版本使用情况统计
- ArcGis 统计方法
- Google Earth Engine(GEE)—geemap 区域之的统计
- 如何统计一个数字x中1的个数
- redis性能监控(一): Redis Info 命令 - 获取 Redis 服务器的各种信息和统计数值
- 【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
- Git应用--04遇到冲突解决办法git stash(转载)
- Python基础之文件操作+复制文件目录+统计目录大小
- Git - 使用BitBucket和SourceTree进行源代码管理遇到POST git-receive-pack (chunked)
- mysql5.0.x统计每秒增删改查替换数及系统每秒磁盘IO
- Linux中一行命令查看网卡流量、统计网络流量的各种实现方法
- 【GIT】git中文文件名显示异常问题
- Git学习之常见错误 git push 失败