Extracting the top contributor

Git has a few built-in stats you can get instantaneously. The git log command has different options, such as --numstat, that will show the number of files added and lines deleted for each file since each commit. However, for finding the top committer in the repository, we can just use the git shortlog command.

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.