https://github.com/pawel-slowik/git-stats
Display contributor statistics for a Git repository.
https://github.com/pawel-slowik/git-stats
git statistics
Last synced: about 2 months ago
JSON representation
Display contributor statistics for a Git repository.
- Host: GitHub
- URL: https://github.com/pawel-slowik/git-stats
- Owner: pawel-slowik
- License: mit
- Created: 2025-10-25T20:43:02.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-18T17:03:13.000Z (7 months ago)
- Last Synced: 2025-11-18T19:06:12.005Z (7 months ago)
- Topics: git, statistics
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

This script displays contributor statistics for a Git repository.
## Requirements
Git and Python 3.x. For Python, only the standard library is required, there's
no need to install additional packages.
The script relies on authors' names being consistent throughout the entire
history of a repository. Inconsistencies can be worked around with a
[gitmailmap](https://git-scm.com/docs/gitmailmap).
## Installation
Download the `git_stats.py` file or clone the repository.
## Usage
usage: git_stats.py [-h] [--sort {count,start,duration}] path [path ...]
Show author commit statistics for a Git repository.
positional arguments:
path path to Git repository
options:
-h, --help show this help message and exit
--sort {count,start,duration}
display order
Output includes author's name, commit count, date of first commit and activity
period.
## Example output
Angela Sáenz ____________ 644 2010/03 7y2m
Jaume Soriano ___________ 9 2010/03 1m
Salvador Jiménez ________ 2 2010/03 5m
Cecilia Blázquez ________ 3 2012/02 1m
Noah Sanhueza ___________ 4984 2012/03 4y5m
Noemi Ávila _____________ 15 2012/03 3y9m
Marcos Tejero ___________ 120 2012/03 2y
Africa Bilbao ___________ 1 2014/04 1m
Eneko Valverde __________ 11 2014/05 1m
Carmen Maria Bermúdez ___ 3 2020/05 1y1m