Skip to content
@libgit2

libgit2

A portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API.

libgit2

libgit2 is a portable, pure C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Language bindings like Rugged (Ruby), LibGit2Sharp (.NET), pygit2 (Python) and NodeGit (Node) allow you to build Git tooling in your favorite language.

libgit2 is used to power Git GUI clients like GitKraken and gmaster and on Git hosting providers like GitHub, GitLab and Azure DevOps. We perform the merge every time you click "merge pull request".

libgit2 is licensed under a very permissive license (GPLv2 with a special Linking Exception). This basically means that you can link it (unmodified) with any kind of software without having to release its source code. Additionally, the example code has been released to the public domain (see the separate license for more information).

Pinned Loading

  1. libgit2 libgit2 Public

    A cross-platform, linkable library implementation of Git that you can use in your application.

    C 10.2k 2.5k

  2. rugged rugged Public

    ruby bindings to libgit2

    C 2.3k 284

  3. libgit2sharp libgit2sharp Public

    Git + .NET = ❤

    C# 3.4k 915

Repositories

Showing 10 of 27 repositories
  • benchmarks Public
    libgit2/benchmarks’s past year of commit activity
    JavaScript 2 1 0 0 Updated Dec 1, 2025
  • pygit2 Public

    Python bindings for libgit2

    libgit2/pygit2’s past year of commit activity
    Python 1,695 403 200 8 Updated Dec 1, 2025
  • libgit2 Public

    A cross-platform, linkable library implementation of Git that you can use in your application.

    libgit2/libgit2’s past year of commit activity
    C 10,222 2,542 400 126 Updated Oct 31, 2025
  • libgit2sharp Public

    Git + .NET = ❤

    libgit2/libgit2sharp’s past year of commit activity
    C# 3,389 MIT 915 397 49 Updated Oct 30, 2025
  • luagit2 Public

    Lua bindings for libgit2

    libgit2/luagit2’s past year of commit activity
    C 170 MIT 31 1 4 Updated Sep 21, 2025
  • www.libgit2.org Public

    libgit2 website

    libgit2/www.libgit2.org’s past year of commit activity
    CSS 113 MIT 64 7 2 Updated Jun 5, 2025
  • xdiff Public

    xdiff (from git)

    libgit2/xdiff’s past year of commit activity
    C 24 7 1 0 Updated Mar 2, 2025
  • libgit2/libgit2sharp.nativebinaries’s past year of commit activity
    PowerShell 34 MIT 72 11 4 Updated Jan 20, 2025
  • rugged Public

    ruby bindings to libgit2

    libgit2/rugged’s past year of commit activity
    C 2,278 MIT 284 103 22 Updated Jan 3, 2025
  • www.libgit2.org-docs Public

    Generated reference documentation for libgit2

    libgit2/www.libgit2.org-docs’s past year of commit activity
    HTML 0 0 0 0 Updated Nov 25, 2024