Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating statistics from Git repository [closed]

I'm looking for some good tools/scripts that allow me to generate a few statistics from a git repository. I've seen this feature on some code hosting sites, and they contained information like...

  • commits per author
  • commits per day/week/year/etc.
  • lines of code over time
  • graphs
  • ... much more

Basically I just want to get an idea how much my project grows over time, which developer commits most code, and so on.

like image 409
BastiBen Avatar asked Dec 01 '09 20:12

BastiBen


People also ask

How do I get summary from GitHub?

On GitHub.com, navigate to the main page of the repository. Under your repository name, click Insights.

How do I see recent activity on GitHub?

Finding your recent activityUnder "Recent activity", you can preview up to 4 recent updates made in the last two weeks. Open issues and pull requests appear in the recent activity section when: You have opened an issue or pull request.


2 Answers

commits per author

git shortlog -s -n  
like image 158
Ruslan Kabalin Avatar answered Sep 24 '22 10:09

Ruslan Kabalin


Beside GitStats (git history statistics generator) mentioned by xyld, written in Python and requiring Gnuplot for graphs, there is also

  • gitstat (SourceForge) project (web-based git statistics interface), written in PHP and Perl,
  • Git Statistics, aka gitstats (metrics framework designed to gather statistics on git repositories), written in Python, result of git-statistics project at Google Summer of Code 2008 This is not a web app
  • gitinspector Is a rather new, CLI based Python tool for generating nice reports
  • Hercules - native app without dependencies, written in Go, which specializes in advanced analysis types.
like image 23
Jakub Narębski Avatar answered Sep 24 '22 10:09

Jakub Narębski