{"id":25616633,"url":"https://github.com/augmentable-dev/askgit","last_synced_at":"2025-02-22T04:01:18.735Z","repository":{"id":37247379,"uuid":"276976140","full_name":"mergestat/mergestat-lite","owner":"mergestat","description":"Query git repositories with SQL. Generate reports, perform status checks, analyze codebases. 🔍 📊","archived":false,"fork":false,"pushed_at":"2024-10-14T21:11:18.000Z","size":7473,"stargazers_count":3457,"open_issues_count":40,"forks_count":104,"subscribers_count":36,"default_branch":"main","last_synced_at":"2024-10-29T10:53:31.030Z","etag":null,"topics":["cli","command-line","git","go","golang","sql","sqlite"],"latest_commit_sha":null,"homepage":"https://mergestat.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mergestat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-03T19:46:40.000Z","updated_at":"2024-10-25T19:55:11.000Z","dependencies_parsed_at":"2023-02-17T13:15:33.581Z","dependency_job_id":"7ab631b7-a301-42d8-a2a8-5d6960fc06c3","html_url":"https://github.com/mergestat/mergestat-lite","commit_stats":{"total_commits":776,"total_committers":15,"mean_commits":"51.733333333333334","dds":0.4420103092783505,"last_synced_commit":"5858dcafdee463ba29540ab75538666478c828dd"},"previous_names":["augmentable-dev/gitqlite","augmentable-dev/askgit","askgitdev/askgit"],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mergestat","download_url":"https://codeload.github.com/mergestat/mergestat-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240122591,"owners_count":19751143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","git","go","golang","sql","sqlite"],"created_at":"2025-02-22T04:01:10.455Z","updated_at":"2025-02-22T04:01:18.728Z","avatar_url":"https://github.com/mergestat.png","language":"Go","readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/mergestat/mergestat-lite.svg)](https://pkg.go.dev/github.com/mergestat/mergestat-lite)\n[![BuildStatus](https://github.com/mergestat/mergestat-lite/workflows/tests/badge.svg)](https://github.com/mergestat/mergestat-lite/actions?workflow=tests)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mergestat/mergestat-lite)](https://goreportcard.com/report/github.com/mergestat/mergestat-lite)\n[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/mergestat/mergestat-lite/main)](https://www.tickgit.com/browse?repo=github.com/mergestat/mergestat-lite\u0026branch=main)\n[![codecov](https://codecov.io/gh/mergestat/mergestat-lite/branch/main/graph/badge.svg)](https://codecov.io/gh/mergestat/mergestat-lite)\n[![Twitter Follow](https://img.shields.io/twitter/follow/mergestat)](https://twitter.com/mergestat)\n\n\n# mergestat-lite \u003ca href=\"https://app.mergestat.com/\"\u003e\u003cimg align=\"right\" src=\"https://github.com/mergestat/mergestat-lite/raw/main/docs/logo.png\" alt=\"MergeStat Logo\" height=\"100\"\u003e\u003c/a\u003e\n\n`mergestat-lite` is a command-line tool for running SQL queries on git repositories and related data sources.\nIt'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.\nIt can execute queries that look like:\n```sql\n-- how many commits have been authored by user@email.com?\nSELECT count(*) FROM commits WHERE author_email = 'user@email.com'\n```\n\nIt installs a binary named `mergestat`.\n\nMore in-depth examples and documentation can be found on our dedicated [**documentation site**](https://docs.mergestat.com/).\n\nJoin our community on [Slack](https://join.slack.com/t/mergestatcommunity/shared_invite/zt-xvvtvcz9-w3JJVIdhLgEWrVrKKNXOYg) if you have questions, or just to say hi 🎉.\n\n## Installation\n\nSee the [**full instructions**](https://docs.mergestat.com/getting-started-cli/installation) in our documentation.\n\n### Homebrew\n\n```bash\nbrew tap mergestat/mergestat\nbrew install mergestat\n```\n\n### Docker\n```bash\ndocker run -v \"${PWD}:/repo\" mergestat/mergestat \"select count(*) from commits\"\n```\n\n### Examples\n\nSQL queries can be executed in the CLI on local or remote git repositories.\nRemote repos are cloned to a temporary directory at runtime.\n\n![CLI SQL Screenshot](./docs/cli-query-example.png)\n\nThe `--format` flag can be used to output `json`, `ndjson`, `csv` and more (see `mergestat -h`).\nThis can be useful for piping/using with other tools.\n\nHigher level commands such as `mergestat summarize commits` generate reports without requiring a SQL input.\nLearn more [here](https://docs.mergestat.com/getting-started-cli/summarize-commits) about the available flags such as `--start` to change the date range and `--json` to output as JSON.\n\n![CLI Summarize Commits Screenshot](./docs/cli-summarize-example.png)\n\n[**Learn more in our docs**](https://docs.mergestat.com/)\n","funding_links":[],"categories":["开源类库","Go","工具和库","Open source library","Go (531)"],"sub_categories":["Git"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugmentable-dev%2Faskgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugmentable-dev%2Faskgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugmentable-dev%2Faskgit/lists"}