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 9.9k 2.5k

  2. rugged Public

    ruby bindings to libgit2

    C 2.3k 283

  3. libgit2sharp Public

    Git + .NET = ❤

    C# 3.3k 896

Repositories

Showing 10 of 27 repositories
  • libgit2 Public

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

    C 9,854 2,458 358 89 Updated Mar 1, 2025
  • www.libgit2.org Public

    libgit2 website

    CSS 110 MIT 62 7 0 Updated Feb 26, 2025
  • pygit2 Public

    Python bindings for libgit2

    Python 1,635 394 189 7 Updated Feb 25, 2025
  • benchmarks Public
    JavaScript 1 1 0 0 Updated Feb 3, 2025
  • libgit2sharp Public

    Git + .NET = ❤

    C# 3,265 MIT 896 381 42 Updated Jan 20, 2025
  • PowerShell 32 MIT 65 10 3 Updated Jan 20, 2025
  • xdiff Public

    xdiff (from git)

    C 12 5 1 1 Updated Jan 19, 2025
  • rugged Public

    ruby bindings to libgit2

    C 2,257 MIT 283 99 19 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