API library for working with Git repositories

Version on this page:3.1.1
LTS Haskell 22.30:3.1.3
Stackage Nightly 2024-07-24:3.1.3
Latest on Hackage:3.1.3

See all snapshots gitlib appears in

MIT licensed by John Wiegley
Maintained by [email protected]
This version can be pinned in stack with:gitlib-3.1.1@sha256:e55272ec4648ac992045685feefd4df131c5a80ffd279106b5615083850ca5c4,2933

gitlib is a high-level, lazy and conduit-aware set of abstractions for programming with Git types. Several different backends are available, including one for the libgit2 C library ( (see gitlib-libgit2). The aim is both type-safety and convenience of use for Haskell users, combined with high performance and minimal memory footprint by taking advantage of Haskell's laziness and the conduit library's deterministic resource cleanup.

For further information, as well as typical use cases, see Git.Tutorial.