mac gitstats view git commit records

1. Introduction:

Going further, Gitstats is a git warehouse analysis software that can check warehouses and generate historical data statistics. It can help you check the submission status of the git warehouse, analyze and calculate according to different dimensions, and automatically generate data charts.

Official website introduction: http://gitstats.sourceforge.net/

Currently, the statistical information generated by GitStats is commonly divided into the following categories:

  • General statistics:  total number of files, number of lines, number of submissions, number of authors.
  • Activity:  Submissions per hour per day, per day per week, per hour per week, per month per year, per year.
  • Number of Authors:  List all authors (number of commits, date of first commit, date of last commit), divided by month and year.
  • Number of files : by date, by extension.
  • Number of rows:  divided by date.

2. Tools needed: ( Python must be a version less than 3.0 )

  • Git: This is necessary without explanation.
  • Python2.0: GitStats itself is a python script, we need to use python command to run GitStats under windows.
  • Gnuplot : Gnuplot is a command-line interactive plotting tool.

3. Installation:

1.gnuplot installation

brew install gnuplot

2.gitstats source code download

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

3. After the download is complete, enter the gitstats directory and copy gitstats to the gitstats.py file 

cp gitstats gitstats.py

 4. Use:

Go to the gitstats directory and execute the gitstats.py script using the python named line

/project_path : project file path

/resutl_path : Generate result file path

python gitstats.py /project_path /resutl_path

5. View the results:

Find the folder where the result file is generated, and open the index.html report, as shown in the following figure:

1. Efficiency analysis of the time dimension: submissions per hour per day, per day per week, per hour per week, per month per year, and per year.

2. Activity statistics in the submitter dimension: List all authors (number of submissions, date of first submission, date of latest submission), and divide by month and year.

3. By the number of files: by date, by extension.

 

 

 

 

 

Guess you like

Origin blog.csdn.net/hzqit520/article/details/130324901