---
# System prepended metadata

title: Generating statistics from Git repository
tags: [git]

---

# Generating statistics from Git repository
## GitStats 
1. `sudo apt-get install gitstats`
2. `gitstats [git control dir] [output dir] ex:gitstats repo gen`
3. `python -m SimpleHTTPServer 8080` or 至 [output dir]中打開 index.html

結果如下:
![](https://i.imgur.com/VDruJDA.png)

## gitinspector
1. `npm i -g gitinspector`
2. 至project下輸入
 `gitinspector --format=html --timeline --localize-output -w .> gitresult.html`
![](https://i.imgur.com/p5iw6In.png)


###### tags: `git`