gitql

Query git repositories using SQL-like syntax

brewmacoslinux
Try with needOr install directly
Source

About

Git query language

Commands

gitql

Examples

List all commits with their authors and messages$ gitql 'SELECT * FROM commits'
Find commits by a specific author in the last 10 commits$ gitql 'SELECT hash, author, message FROM commits WHERE author = "John Doe" LIMIT 10'
Count commits per branch$ gitql 'SELECT branch, COUNT(*) as count FROM commits GROUP BY branch'