Who did that? A CLI to reveal Git history by file.
gitwhodid
helps you find out who contributed to a specific file in your Git repo - how much, how recently, and with what kind of commits. (it's a fun weekend project)
- Shows top contributors to a file with percentage breakdown
- Last seen info for each contributor
- Notable commit messages from each contributor
- Friendly, colorful output powered by
Rich
pipx install gitwhodid
Or clone the repo and run directly:
git clone https://github.com/stabldev/gitwhodid cd gitwhodid uv sync uv run gitwhodid <file>
Add this alias to your Git config to run gitwhodid
as a Git subcommand:
git config --global alias.whodid '!gitwhodid' # now you can use it like git whodid <file>