Linux Centos7.4 编译安装最新版Git
yum install gcc gcc-c++ curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker autoconf -y
https://github.com/git/git/releases
我这里以最新版v2.18.0
为例
wget https://github.com/git/git/archive/v2.18.0.tar.gz
tar -zxvf v2.18.0.tar.gz
cd git-2.18.0
make configure
./configure --prefix=/usr/local/git
make && make install
export PATH="/usr/local/git/bin:$PATH"
source /etc/profile
git --version