GitStats項目,用Python開發的一個工具,通過封裝Git命令來實現統計出來代碼情況并且生成可瀏覽的網頁。
安裝
安裝依賴包:Git,Python,Gnuplot
git clone git://github.com/hoxu/gitstats.git
安裝gnuplot畫圖程序
osx brew install gnuplot
centos yum install gnuplot
使用方法
cd gitstats ./gitstats 項目文件夾 生成統計文件夾
訪問生成的文件夾的index.html
即可