前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >git 统计一段时间内提交的代码行数

git 统计一段时间内提交的代码行数

作者头像
obaby
发布2023-02-24 15:01:29
8760
发布2023-02-24 15:01:29
举报
文章被收录于专栏:obaby@mars

代码:

代码语言:javascript
复制
 git log --author="obaby" --after="2019-08-04 00:00:01" --before="2019-08-10 12:00:00"
 --pretty=tformat: --numstat | grep -v 'static'  |
 gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "增加行数:%s 删除行数:%s 变化总行数:%s\n",add,subs,loc }'
参数说明:
--author 作者 提交者
--after 开始时间
--before 结束时间
--pretty 格式

上面的代码依赖于linux windows下运行可以使用cgywin 或者mobaxterm,https://mobaxterm.mobatek.net

MobaXterm is your ultimate toolbox for remote computing. In a single Windows application, it provides loads of functions that are tailored for programmers, webmasters, IT administrators and pretty much all users who need to handle their remote jobs in a more simple fashion. MobaXterm provides all the important remote network tools (SSH, X11, RDP, VNC, FTP, MOSH, …) and Unix commands (bash, ls, cat, sed, grep, awk, rsync, …) to Windows desktop, in a single portable exe file which works out of the box. There are many advantages of having an All-In-One network application for your remote tasks, e.g. when you use SSH to connect to a remote server, a graphical SFTP browser will automatically pop up in order to directly edit your remote files. Your remote applications will also display seamlessly on your Windows desktop using the embedded X server

☆文章版权声明☆

* 网站名称:obaby@mars

* 网址:https://h4ck.org.cn/

* 本文标题: 《git 统计一段时间内提交的代码行数》

* 本文链接:https://h4ck.org.cn/2019/08/git-%e7%bb%9f%e8%ae%a1%e4%b8%80%e6%ae%b5%e6%97%b6%e9%97%b4%e5%86%85%e6%8f%90%e4%ba%a4%e7%9a%84%e4%bb%a3%e7%a0%81%e8%a1%8c%e6%95%b0/

* 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


分享文章:

相关文章:

  1. Pycharm Professional 2019.2.3中文乱码
  2. 青岛移动劫持了*.gravatar.com (:rofl:)
  3. 阿里云 EC2 CentOS 6.0 系统分区扩容
  4. DarkComet-RAT v.3.3 Released
  5. Opera本地个人数据备份工具
  6. VMProtect ULTIMATE 3.4.0 Build 1155
  7. Picasa3 DB Path Changer
  8. Windows git log 中文乱码
  9. BackTrack5 RC3(1)Startx
  10. BackTrack5 RC3(2)System
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019年8月12日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 相关文章:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档