Git项目代码统计-Python3版gitstats

gitstats是一个Git项目统计工具,可以统计git项目代码提交量,提交者的贡献量及活动热力图等信息,如下图。
gitstats

gitstats

gitstats基于Python2.7,使用git log命令生成统计信息,基于gnuplot生成统计图,因此使用前应先安装git和gnuplot
Mac OS可以使用brew安装

brew install git
brew install gnuplot

由于Python2.7接近停止维护,gitstats可以使用本人Fork的支持Python3版本的gitstats。
项目地址:https://github.com/hanzhichao/gitstats
使用方法

git clone https://github.com/hanzhichao/gitstats.git
cd gitstats
python3 gitstats.py git项目目录 reports/
原文地址:https://www.cnblogs.com/superhin/p/11701110.html