Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. 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.

libgit2 compared with 3 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Gitoxide13287%5—Approved
libgit2This page8753%6——
Grit Git rewrite in Rust73716%3——
ziggit6746%2——
See all 4 Git implementations, ranked

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”

CriticizesComment from 2 Oct 2026 in “Git 3.0's upcoming SHA-256 default will be a costly mistake”

“libgit2 has two backends for those already”

MixedComment from 20 Aug 2026 in “Git at Any Scale”

“the wasm is a little big too be any fun”

CriticizesComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“I tried libgit for some use case.”

CriticizesComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“both Gitoxide (Rust) and libgit2 are both better, they're just not feature complete”

RecommendsComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“that's a linkable library that gives you a lot of functionality when working with git repos”

RecommendsComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“It's great but it's not feature complete”

MixedComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“Gitoxide and libgit2 are both awesome but they are not feature complete.”

MixedComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“as much as I love and support those projects”

RecommendsComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“You can use libgit2 (a project I also helped kickstart)”

RecommendsComment from 10 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“Currently both Gitoxide and libgit2's networking functionality is either partial, slow or non-existant.”

CriticizesComment from 9 Jun 2026 in “Grit: Rewriting Git in Rust with Agents”

“libgit2 is full of footguns”

CriticizesComment from 2 Apr 2026 in “We sped up bun by 100x”

“I'm actually assured to hear the git CLI is better covered than libgit2”

MixedComment from 2 Apr 2026 in “We sped up bun by 100x”

“Bun's attempted to integrate with libgit2 instead of spawning calls to the git CLI and found it to be consistently 3x slower”

CriticizesComment from 2 Apr 2026 in “We sped up bun by 100x”

“Having built a service on top of libgit2, I can say that there are plenty of tricky aspects to using the library”

CriticizesComment 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”

CriticizesComment from 2 Apr 2026 in “We sped up bun by 100x”

“libgit2 seems very sane and shouldn't be terribly hard to make something usable out of it”

RecommendsComment from 10 Mar 2026 in “Rebasing in Magit”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.