A C library implementing the Git core methods with a solid API
libgit2 can be imported via CMake FindPkgConfig module:
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBGIT2 REQUIRED IMPORTED_TARGET libgit2)
target_link_libraries(main PRIVATE PkgConfig::LIBGIT2)
vcpkg provides proprietary CMake targets:
find_package(unofficial-libgit2 CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::libgit2::libgit2)
SSL support (mbedTLS)
SSL support (OpenSSL)
Build against external libpcre
Build against external libpcre2
SSL support (sectransp)
SSH support via libssh2
Default SSL backend
Build CLI tools
SSL support (WinHTTP)
v1.8.0#0
!uwp
Complex license
Manifest