
Linux Centos7.4 编译安装最新版Git

yum install gcc gcc-c++ curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker autoconf -yhttps://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.gzcd git-2.18.0
make configure
./configure --prefix=/usr/local/git
make && make installexport PATH="/usr/local/git/bin:$PATH"
source /etc/profilegit --version