gitstats 代码统计工具 ubuntu2004

gitstats 代码统计工具

GitStats is a statistics generator for git (a distributed revision control system 分布式版本控制系统) repositories. It examines the repository and produces some interesting statistics from the history of it. Currently HTML is the only output format.

Features
Here is a list of some statistics generated currently:

  • General statistics: total files, lines, commits, authors. 一般统计:文件总数、行数、提交数、作者数。
  • Activity: commits by hour of day, day of week, hour of week, month of year, year and month, and year.
  • Authors: list of authors (name, commits (%), first commit date, last commit date, age), author of month, author of year.
  • Files: file count by date, extensions
  • Lines: Lines of Code by date

using

git clone git://github.com/hoxu/gitstats.git

cd gitstats

cp gitstats gitstats.py

install gnuplot

sudo apt-get install gnuplot

miniconda pyhton2 environment

conda activate

conda create -n py2 python=2.7

conda activate py2

python gitstats.py ../../your_project/ ../../your_project/statistic

first param 为工程所在目录。
second param 为结果文件目录。

open index.html

完成后,进入目录,双击index.html文件查看统计结果。

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值