mergestat-lite

使用 SQL 查询 git 仓库。生成报告、执行状态检查、分析代码库。「Query git repositories with SQL. Generate reports, perform status checks, analyze codebases. 🔍 📊」

Github星跟蹤圖

Go Reference
BuildStatus
Go Report Card
TODOs
codecov
Twitter Follow

mergestat-lite

mergestat-lite 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 user@email.com?
SELECT count(*) FROM commits WHERE author_email = 'user@email.com'

It installs a binary named mergestat.

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 🎉.

Installation

See the full instructions in our documentation.

Homebrew

brew tap mergestat/mergestat
brew install mergestat

Docker

docker run -v "${PWD}:/repo" mergestat/mergestat "select count(*) from commits"

Examples

SQL queries can be executed in the CLI on local or remote git repositories.
Remote repos are cloned to a temporary directory at runtime.

CLI SQL Screenshot

The --format flag can be used to output json, ndjson, csv and more (see mergestat -h).
This can be useful for piping/using with other tools.

Higher level commands such as mergestat summarize commits generate reports without requiring a SQL input.
Learn more here about the available flags such as --start to change the date range and --json to output as JSON.

CLI Summarize Commits Screenshot

Learn more in our docs

主要指標

概覽
名稱與所有者mergestat/mergestat-lite
主編程語言Go
編程語言Makefile (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2020-07-04 03:46:40
推送於2025-10-14 13:35:56
最后一次提交
發布數37
最新版本名稱v0.6.2 (發布於 )
第一版名稱v0.0.1 (發布於 )
用户参与
星數3.5k
關注者數34
派生數110
提交數1.1k
已啟用問題?
問題數65
打開的問題數26
拉請求數278
打開的拉請求數18
關閉的拉請求數66
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?