libgit2
Ranked 2 of 4 Git implementations by recommenders
Free library for working with git repositories from your own code, with broad functionality. Common caveat: not feature complete, and one benchmark found it slower than the git CLI.
Free library for working with git repositories from your own code, with broad functionality. Common caveat: not feature complete, and one benchmark found it slower than the git CLI.
15 people gave an opinion
- recommend it
- 8
- criticize it
- 7
- approval share
- 53%
Recommended in 6 of 13 months
- November 2025: recommended
- December 2025: not recommended
- January 2026: not recommended
- February 2026: not recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: not recommended
- August 2026: recommended
- September 2026: not recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 8 people recommend itNeeds 10 or more, not met.
- 1.1 recommenders for every criticNeeds 2 to 1 or better, not met.
- Recommended in 6 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Sane, linkable library with broad functionality
“that's a linkable library that gives you a lot of functionality when working with git repos”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents” “libgit2 seems very sane and shouldn't be terribly hard to make something usable out of it”
Comment from 10 Mar 2026 in “Rebasing in Magit” Praised as awesome and great
“both Gitoxide (Rust) and libgit2 are both better, they're just not feature complete”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents” “Gitoxide and libgit2 are both awesome but they are not feature complete.”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents” “It's great but it's not feature complete”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”
What people warn about
Each mark is one comment
Not feature complete
“both Gitoxide (Rust) and libgit2 are both better, they're just not feature complete”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents” “Gitoxide and libgit2 are both awesome but they are not feature complete.”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents” “It's great but it's not feature complete”
Comment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents” Slower than git CLI
“Bun's attempted to integrate with libgit2 instead of spawning calls to the git CLI and found it to be consistently 3x slower”
Comment from 2 Apr 2026 in “We sped up bun by 100x” “Across the board the C library was 3x slower than just spawning calls to the git CLI”
Comment from 2 Apr 2026 in “We sped up bun by 100x” Tricky to use, full of footguns
“Having built a service on top of libgit2, I can say that there are plenty of tricky aspects to using the library”
Comment from 2 Apr 2026 in “We sped up bun by 100x” “libgit2 is full of footguns”
Comment from 2 Apr 2026 in “We sped up bun by 100x”
Other Git implementations people recommend
The three most recommended other Git implementations, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Gitoxide | 13 | 2 | 87% | 5 | — | Approved |
| libgit2This page | 8 | 7 | 53% | 6 | — | — |
| Grit Git rewrite in Rust | 7 | 37 | 16% | 3 | — | — |
| ziggit | 6 | 7 | 46% | 2 | — | — |
What people said
17 of the 20 comments that mention it, newest first. Each links to the original comment.
“it still doesn't support newer Git features like reftables”
“libgit2 has two backends for those already”
“the wasm is a little big too be any fun”
“I tried libgit for some use case.”
“both Gitoxide (Rust) and libgit2 are both better, they're just not feature complete”
“that's a linkable library that gives you a lot of functionality when working with git repos”
“It's great but it's not feature complete”
“Gitoxide and libgit2 are both awesome but they are not feature complete.”
“as much as I love and support those projects”
“You can use libgit2 (a project I also helped kickstart)”
“Currently both Gitoxide and libgit2's networking functionality is either partial, slow or non-existant.”
“libgit2 is full of footguns”
“I'm actually assured to hear the git CLI is better covered than libgit2”
“Bun's attempted to integrate with libgit2 instead of spawning calls to the git CLI and found it to be consistently 3x slower”
“Having built a service on top of libgit2, I can say that there are plenty of tricky aspects to using the library”
“Across the board the C library was 3x slower than just spawning calls to the git CLI”
“libgit2 seems very sane and shouldn't be terribly hard to make something usable out of it”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.