使用gitstats分析git 仓库代码

gitstats 是一个很不错的git 代码提交分析工具,可以帮助我们生成图表统计结果

工具文档信息

  • gitstats
http://gitstats.sourceforge.net/

安装

使用centos 系统

yum install gitstats

使用

  • git clone 代码
git clone https://github.com/statsbotco/cube.js.git
  • 生产统计结果
mkdir result # 存放目录
gitstats cube.js  result
  • 效果

生成的html 报告

说明

使用gitstats 做为ci/cd 的一个工具,集合git 软件的webhooks 功能,我们可以很方便的进行代码的分析,对于生成的html 报告我们可以结合
s3,gitlab pages 等方便的进行存储访问,如果和容器集成起来,也是很不错的,类似的工具也挺多的 git-sizer
gitbase

参考资料

http://gitstats.sourceforge.net/ 
https://github.com/hoxu/gitstats 
https://github.com/rongfengliang/gitstats-docker-image

猜你喜欢

转载自www.cnblogs.com/rongfengliang/p/10824751.html