CentOS Git 源码安装
安装 Git 依赖的库
1 | sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel \ |
下载解压,编译并安装
注:下载地址可查看 https://www.kernel.org/pub/software/scm/git or https://github.com/git/git/releases 区别是一个有文件下载签名,一个为最新版本。
1 | wget https://github.com/git/git/archive/v2.16.1.tar.gz |