yum -y remove git
yum -y install perl cpio curl curl-devel zlib-devel openssl-devel expat-devel
yum -y install gettex-devel perl-devel build-essential tcl8.4 tk8.4 gettext
yum -y install wget
wget https://github.com/git/git/archive/v2.16.2.tar.gz
tar -zvxf v2.16.2.tar.gz
cd git-2.16.2/
make configure
./configure --prefix=/usr/local/git
make && make install
ln /usr/local/git/bin/git /usr/bin/
git version
网友评论