Previously I have enjoyed TortoiseSvn's ability to generate simple commit stats for a given SVN repository. I wonder what is available in Git and am particularly interested in :
- Number of commits per user
- Number of lines changed per user
- activity over time (for instance aggregated weekly changes)
Any ideas?
Here are ways to get stats for a specific branch or two hashs.
key here is the ability to do HASH..HASH
Below I am using the first hash from a branch to the HEAD which is the end of that branch.
Show total commits in a branch
Show total commits per author
Modify https://stackoverflow.com/a/18797915/3243930 . the output is much closed to the graph data of github.
DataHero now makes it easy to pull in Github data and get stats. We use it internally to track our progress on each milestone.
https://datahero.com/partners/github/
How we use it internally: https://datahero.com/blog/2013/08/13/managing-github-projects-with-datahero/
Disclosure: I work for DataHero
See this gitstat project
http://mirror.celinuxforum.org/gitstat/
Actually, git already has a command for this:
in your case, it sounds like you're interested in this form:
See the
--help
for various options.You may also be interested in the GitStats project. They have a few examples, including the stats for the Git project. From the GitStat main page:
Here is a list of some statistics generated currently:
Thanks to hacker for answering this question. However, I found these modified versions to be better for my particular usage:
(using awk as I don't have gawk on my mac, and sorting with most active comitter on top.) It outputs a list like so: