Vibeleaderboard
Index / tool
Category
Developer Tools
Rank
No. 4184Tools index

Previous survey · No. 4051 ·

Pricing
Open Source
Type
TOOL
Use case
Coding
GitHub
10 stars
Date

About

go-git2 is a read-only Go git library that runs libgit2 transpiled to Go with wasm2go. It builds with CGO disabled and cross-compiles without a C toolchain on 64-bit Linux, macOS, and Windows. The API follows go-git v5, so read-only code is mostly a drop-in, and the author reports 10-100x faster reads on large repositories.

At a glance

go-git2 exposes read-only Git operations to Go programs without requiring cgo. It is worth evaluating if you need to inspect local repositories and want a library built around libgit2 behavior.

Good fit

Go developers building repository analysis or history tools that do not write to Git.

Consider something else when

Skip it if your app needs to clone, fetch, check out or commit through the same library.

Start here

Read history and a diff from a scratch repository. Compare the result with the Git CLI for a merge commit or rename your application needs to interpret.

Cost and requirements

The project requires Go 1.25 or later on supported 64-bit Linux, macOS or Windows systems. It translates a WebAssembly build of libgit2 into Go.

Limits to know

The API resembles go-git but compatibility is not universal. Check required behavior and measure performance on your own repository.

Related work

Suggest an improvement

Similar tools

Browse all tools →

Tags

gogitlibgit2wasmlibraryperformance

Tech Stack

Go

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.