🍺 BREW Explorer

← all formulae

libgit2

brew install libgit2 v1.9.4 GPL-2.0-only WITH GCC-exception-2.0

C library providing re-entrant Git repository operations for embedding in applications.

Why you might care

Embedded in version-control tools, language bindings, and build systems that need programmatic Git access without shelling out to git. Single, linkable library with no dependency on the git binary itself; faster and more controllable than subprocess calls.

Categories

Alternatives

GitPython go-git JGit
52.6k
30-day installs · #122
144.2k
90-day · #147
406.0k
365-day · #171

Runtime dependencies

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "libgit2@1.9"
  ],
  "alternatives": [
    "GitPython",
    "go-git",
    "JGit"
  ],
  "build_dependencies": [
    "cmake",
    "pkgconf"
  ],
  "categories": [
    "library",
    "version-control"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libssh2",
    "llhttp"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "C library of Git core methods that is re-entrant and linkable",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:40+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libgit2",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://libgit2.org/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "libgit2",
  "installs_30d": 52568,
  "installs_365d": 405970,
  "installs_90d": 144220,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-only WITH GCC-exception-2.0",
  "llm_generated_at": "2026-06-20T23:42:51+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "libgit2",
  "oldnames": [],
  "one_liner": "C library providing re-entrant Git repository operations for embedding in applications.",
  "optional_dependencies": [],
  "rank_30d": 122,
  "rank_365d": 171,
  "rank_90d": 147,
  "raw_hash": "fda9605467553128",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/lib/libgit2.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.9.4",
  "versioned_formulae": [
    "libgit2@1.8",
    "libgit2@1.7"
  ],
  "why_use_this": "Embedded in version-control tools, language bindings, and build systems that need programmatic Git access without shelling out to git. Single, linkable library with no dependency on the git binary itself; faster and more controllable than subprocess calls."
}