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 Public

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

    C 10k 2.5k

  2. rugged Public

    ruby bindings to libgit2

    C 2.3k 283

  3. libgit2sharp Public

    Git + .NET = ❤

    C# 3.3k 899

Repositories

Showing 10 of 27 repositories
  • pygit2 Public

    Python bindings for libgit2

    Python 1,657 401 200 8 Updated Jun 23, 2025
  • benchmarks Public
    JavaScript 3 1 0 0 Updated Jun 20, 2025
  • libgit2 Public

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

    C 10,020 2,478 372 97 Updated Jun 6, 2025
  • www.libgit2.org Public

    libgit2 website

    CSS 111 MIT 62 7 0 Updated Jun 5, 2025
  • xdiff Public

    xdiff (from git)

    C 16 5 1 0 Updated Mar 2, 2025
  • libgit2sharp Public

    Git + .NET = ❤

    C# 3,309 MIT 899 390 44 Updated Jan 20, 2025
  • PowerShell 33 MIT 69 11 4 Updated Jan 20, 2025
  • rugged Public

    ruby bindings to libgit2

    C 2,268 MIT 283 101 21 Updated Jan 3, 2025
  • www.libgit2.org-docs Public

    Generated reference documentation for libgit2

    HTML 1 0 0 0 Updated Nov 25, 2024
  • benchmark-resources Public

    Additional (large) resources for benchmarks

    1 0 0 0 Updated Oct 29, 2024