Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 94
    exclude merges: git shortlog -sn --no-merges Commented Feb 5, 2015 at 6:42
  • 10
    e flag gives you committers email address git shortlog -sne Commented Jun 22, 2016 at 2:30
  • 4
    Personally I am more interested in how many lines each person was the last one to touch, or total number of lines changed per person. Commits per author is also interesting though. Commented Aug 17, 2018 at 1:05
  • 25
    git shortlog -s -n --since "DEC 31 2017" if you want to filter since a given date. Great for annual reviews ;) Commented Dec 14, 2018 at 21:47
  • 7
    @EnekoAlonso I recommend against using such metrics to measure developer performance. You will likely see false positives masking poor development practices, while some of the best developers will go unnoticed. There is no correlation between number of commits and developer performance, aside from 0 or way, way, way too many. Commented Mar 4, 2020 at 18:45