libgit2
1.1、libgit2简介
是什么 ?:a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language which supports C bindings.
开发语言:C
官方主页:https://libgit2.org
源码仓库:https://github.com/libgit2/libgit2
1.2、通过包管理器安装libgit2
操作系统包管理器安装命令
Allvcpkg
vcpkg install libgit2
vcpkg install libgit2:x64-osx
vcpkg install libgit2:x64-linux
vcpkg install libgit2:x64-windows
macOSHomeBrewbrew install libgit2
GNU/LinuxHomeBrewbrew install libgit2
aptsudo apt-get install -y libgit21g libgit21g-dev
CentOSyumsudo yum install -y libgit2 libgit2-devel
dnfsudo dnf install -y libgit2 libgit2-devel
openSUSEzyppersudo zypper install -y libgit2 libgit2-devel
Alpine Linuxapksudo apk add libgit2

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm libgit2
Gentoo LinuxPortagesudo emerge libgit2
1.3、通过编译源码安装libgit2
1.4、libgit2中包含的头文件
1.5、libgit2中包含的库文件
  • libgit2.{a | so | dylib}