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.6k 2.6k

  2. rugged rugged Public

    ruby bindings to libgit2

    C 2.3k 293

  3. libgit2sharp libgit2sharp Public

    Git + .NET = ❤

    C# 3.5k 923

Repositories

Showing 10 of 27 repositories
  • benchmarks Public
    libgit2/benchmarks's past year of commit activity
    JavaScript 2 1 0 1 Updated Sep 9, 2026
  • pygit2 Public

    Python bindings for libgit2

    libgit2/pygit2's past year of commit activity
    Python 1,727 407 184 7 Updated Sep 5, 2026
  • www.libgit2.org Public

    libgit2 website

    libgit2/www.libgit2.org's past year of commit activity
    CSS 116 MIT 67 7 3 Updated Aug 15, 2026
  • 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,587 2,646 418 116 Updated Aug 15, 2026
  • libgit2sharp Public

    Git + .NET = ❤

    libgit2/libgit2sharp's past year of commit activity
    C# 3,456 MIT 923 403 54 Updated Jul 23, 2026
  • libgit2/libgit2sharp.nativebinaries's past year of commit activity
    PowerShell 35 MIT 74 12 3 Updated Jul 20, 2026
  • rugged Public

    ruby bindings to libgit2

    libgit2/rugged's past year of commit activity
    C 2,311 MIT 293 97 24 Updated Jul 19, 2026
  • xdiff Public

    xdiff (from git)

    libgit2/xdiff's past year of commit activity
    C 27 7 1 0 Updated May 2, 2026
  • luagit2 Public

    Lua bindings for libgit2

    libgit2/luagit2's past year of commit activity
    C 176 MIT 29 2 4 Updated Dec 16, 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