libgit2
A cross-platform, linkable library implementation of Git that you can use in your application. observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 97
- Release rhythm 97
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 17
- age_days: 5836
- days_rel: 20
- days_push: 18
- n_releases_24m: 14
Adoption not part of the score
10575 stars · 2643 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
libgit2 is a portable, pure C implementation of Git's core methods provided as a re-entrant linkable library with a solid API. It can be embedded directly in applications or accessed from many languages through official bindings such as pygit2, Rugged, LibGit2Sharp, git2go, and objective-git.
Use cases
- embed git functionality in my application without shelling out to the git binary
- read and write git repositories from python
- build a gui git client
- implement git hosting or forge features programmatically
- manipulate commits, branches, and diffs from .net or ruby
- clone and inspect repositories programmatically
When to choose
- you need git operations embedded in a C, C++, or bound-language application
- you want a permissive license (GPLv2 with linking exception) for proprietary software
- you need cross-platform git support on Linux, macOS, iOS, or Windows
- spawning the git CLI is undesirable or unavailable in your environment
When to avoid
- you just need a command-line git tool for everyday use
- you want a high-level scripting tool rather than a library to link against
- you need the absolute latest git features immediately, as libgit2 can lag the git CLI
Facets
library · maturity stable
version-control sdk developer-tools version-control developer-tools cross-platform windows cross-platform c git dvcs c-library ffi-bindings linkable-library linux macos ios
4 sources
- readme: https://github.com/libgit2/libgit2 · fetched 2026-08-28 · a3a974b4c56a
- homepage: https://www.libgit2.org · fetched 2026-08-29 · cc634028b34c
- site_page: https://libgit2.org/docs/reference · fetched 2026-08-29 · 9c87109cb8f3
- site_page: https://libgit2.org/docs · fetched 2026-08-29 · 5b7d58fa9fbf
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| libgit2/libgit2 | main | 98 |
| libgit2/libgit2sharp | sdk | 84 |
| libgit2/rugged | sdk | 65 |
| libgit2/git2go | sdk | 23 |
| libgit2/pygit2 | sdk | 94 |
| libgit2/objective-git | sdk | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem