mergestat is a command-line tool for running SQL queries on git repositories and related data sources.
It's meant for ad-hoc querying of source-code on disk through a common interface (SQL), as an alternative to patching together various shell commands.
It can execute queries that look like:
-- how many commits have been authored by firstname.lastname@example.org? SELECT count(*) FROM commits WHERE author_email = 'email@example.com'
You can try queries on public git repositories without installing anything at try.askgit.com, in our
More in-depth examples and documentation can be found on our dedicated documentation site.
Join our community on Slack if you have questions, or just to say hi