安裝編譯環(huán)境
yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel curl autoconf
下載git版本安裝
wget https://github.com/git/git/archive/v2.4.5.zip
解壓安裝
unzip git-2.4.5.zip
cd git-2.4.5
autoconf
./configure
make
make install
安裝完成
git --version
注:之前安裝1.8版本時編譯報錯,可安裝以下依賴
yum -y install perl-ExtUtils-MakeMaker package