A simple Python script to analyze Git repository statistics with support for author filtering and date ranges.
- Count lines added, removed, and changed in a Git repository
- Filter by author name
- Specify date range
- Have git installed
- Clone / download the main script
- Run the script in your desired repo locally
- Thats it.
Basic usage:
python main.pyWith filters:
python main.py --start-date 2024-01-01 --end-date 2025-01-01 --author "John Doe"--start-date: Start date (YYYY-MM-DD)--end-date: End date (YYYY-MM-DD)--author: Filter by author name
═══════════════════════════════════════
Git Repository Analysis
Period: 2024-01-01 to 2024-01-31
Author: John Doe
───────────────────────────────────────
Commits: 42
Lines added: +1,234
Lines removed: -567
Lines changed: 1,801
Net change: +667
═══════════════════════════════════════