gritHEAD → docsHow to use grit, a simple Git client built on grit-lib.
$ grit

The command line

Works on any Git repository and talks to any remote. Plain-language output and --json on every command.

Commands

For agents

  • grit-cli.md — the whole CLI in one file, to learn grit for everyday Git work
  • grit-lib.md — the whole library guide in one file, to build Git-compatible Rust programs
  • llms.txt — an index of every page with a one-line summary
  • llms-full.txt — every docs page in one file

Every page has a Markdown twin: swap index.html for index.md. grit skill prints an agent skill for the CLI.

use grit_lib;

The library

A fast, linkable Git library for Rust. Everything the CLI does goes through it: open repositories, read objects and refs, diff, revwalk, fetch and push.

Guides
API reference on docs.rs ↗

On-disk formats and the wire protocol stay compatible with Git. See benchmarks →