I just installed GitStats, and I’m at that point where I have to say, “Now, what?”. I see examples on the site of user lines of code, etc., but no examples of how to get simple stats like that. I don’t need a chart or anything. I just want to be able to console output the results in a list of user -> lines of code or something. Any help is much appreciated.
Share
Update (July 11th, 2014)
I’m not sure what version i had installed when I first answered this question, but the latest version gave me an
authors.htmlfile when I rangitstats /path/to/repo/.git /path/to/output/dir/that contained exactly the info I was looking for.Original Answer
It’s pretty simple, I found. You just type:
It outputs the entire report with charts, navigation via tabs, etc.
Note: You cannot tell how many lines each user has contributed (at least with the version of gitstats that an
apt-get install gitstatsgot me). The output was useful, and is a great way to learn about your code base and its contributors. I did the following, to get the number of lines of a particular user:Then, I used Python to parse the data (since there were hundreds of commits):