Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gitoxide

> 开发工具
Open source

An idiomatic, lean, fast & safe pure Rust implementation of Git

11.7K stars0 likes2 views
WebsiteGitHub

About

An idiomatic, lean, fast & safe pure Rust implementation of Git

gitoxide is an implementation of git written in Rust for developing future-proof applications which strive for correctness and performance while providing a pleasant and unsurprising developer experience.

There are two primary ways to use gitoxide:

  1. As Rust library: Use the gix crate as a Cargo dependency for API access.
  2. As command-line tool: The gix binary as development tool to help testing the API in real repositories, and the ein binary with workflow-enhancing tools. Both binaries may forever be unstable, do not rely on them in scripts. [gix]: https://docs.rs/gix

Development Status

The command-line tools as well as the status of each crate is described in the crate status document.

For use in applications, look for the gix crate, which serves as entrypoint to the functionality provided by various lower-level plumbing crates like gix-config.

Feature Discovery

Can gix do what I need it to do?

The above can be hard to answer and this paragraph is here to help with feature discovery.

Look at crate-status.md for a rather exhaustive document that contains both implemented and planned features.

Further, the gix crate documentation with the git2 search term helps to find all currently known git2 equivalent method calls. Please note that this list is definitely not exhaustive yet, but might help if you are coming from git2.

What follows is a high-level list of features and those which are planned:

  • clone
  • fetch
  • push
  • blame (plumbing)
  • status
  • blob and tree-diff
  • merge
    • blobs
    • trees
    • commits
  • commit
    • hooks
  • commit-graph traversal
  • rebase
  • worktree checkout and worktree stream
  • reset
  • reading and writing of objects
  • reading and writing of refs
  • reading and writing of .git/index
  • reading and writing of git configuration
  • pathspecs
  • revspecs
  • .gitignore and .gitattributes

Crates

Follow linked crate name for detailed status. Please note that all crates follow semver as well as the stability guide.

Production Grade

  • Stability Tier 1

    • gix-lock
  • Stability Tier 2

    • gix-tempfile

Stabilization Candidates

Crates that seem feature complete and need to see some more use before they can be released as 1.0. Documentation is complete and was reviewed at least once.

  • gix-mailmap
  • gix-chunk
  • gix-ref
  • gix-config
  • gix-config-value
  • gix-glob
  • gix-actor
  • gix-hash

Initial Development

These crates may be missing some features and thus are somewhat incomplete, but what's there is usable to some extent.

  • usable (with rough but complete docs, possibly incomplete functionality)
    • gix (⬅ entrypoint)
    • gix-object
    • gix-validate
    • gix-url
    • gix-packetline
    • gix-packetline-blocking
    • gix-transport
    • gix-protocol
    • gix-pack
    • gix-odb
    • gix-commitgraph
    • gix-diff
    • gix-traverse
    • gix-features
    • gix-credentials
    • gix-sec
    • gix-quote
    • gix-discover
    • gix-path
    • gix-attributes
    • gix-ignore
    • gix-pathspec
    • gix-index
    • gix-revision
    • gix-revwalk
    • gix-command
    • gix-prompt
    • gix-refspec
    • gix-fs
    • gix-utils
    • gix-hashtable
    • gix-worktree
    • gix-bitmap
    • gix-negotiate
    • gix-filter
    • gix-worktree-stream
    • gix-archive
    • gix-submodule
    • gix-status
    • gix-worktree-state
    • gix-date
    • gix-dir
    • gix-merge
    • gix-shallow
    • gix-error
    • gitoxide-core
  • very early (possibly without any documentation and many rough edges)
    • gix-blame
  • idea (just a name placeholder)
    • gix-note
    • gix-fetchhead
    • gix-lfs
    • gix-rebase
    • gix-sequencer
    • gix-tui
    • gix-tix
    • gix-bundle
    • gix-fsck

Stress Testing

  • Verify huge packs
  • Explode a pack to disk
  • Generate and verify large commit graphs
  • Generate huge pack from a lot of loose objects

Stability and MSRV

Our stability guide helps to judge how much churn can be expected when depending on crates in this workspace.

Installation

Download a Binary Release

Using cargo binstall, one is able to fetch binary releases. You can install it via cargo install cargo-binstall, assuming the [rust toolchain][rustup] is present.

Then install gitoxide with cargo binstall gitoxide.

See the releases section for manual installation and various alternative builds that are slimmer or smaller, depending on your needs, for Linux, MacOS and Windows.

Install with Homebrew

For macOS and Linux, gitoxide can be installed from Homebrew:

bash
brew install gitoxide

Download from Arch Linux repository

For Arch Linux you can download gitoxide from community repository:

bash
pacman -S gitoxide

Download from Exherbo Linux Rust repository

For Exherbo Linux you can download gitoxide from the Rust repository:

bash
cave resolve -x repository/rust
cave resolve -x gitoxide

From Source via Cargo

cargo is the Rust package manager which can easily be obtained through [rustup]. With it, you can build your own binary effortlessly and for your particular CPU for additional performance gains.

The minimum supported Rust version is documented in the Cargo package, the latest stable one will work as well.

There are various build configurations, all of them are documented here. The documentation should also be useful for packagers who need to tune external dependencies.

…

The following installs the latest unpublished max release directly from git:

bash
cargo install --git https://github.com/GitoxideLabs/gitoxide gitoxide

How to deal with build failures

On some platforms, installation may fail due to lack of tools required by C toolchains. This can generally be avoided by installation with:

bash
cargo install gitoxide --no-default-features --features max-pure
`

Issues· 14 open

View all issuesOpen on GitHub
  • #3015

    `blocking-http-transport-reqwest` silently ignores `http.proxy` (unlike the `curl` backend)

    Updated Sep 23, 2026
  • #2878

    gix-odb: `Handle::contains` issues a `sched_yield` on every miss, including under `RefreshMode::Never`

    Updated Aug 5, 2026

> Tags

Rustblazingly-fastbuilt-with-rustcligit

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具