1.上传git文件:git-2.9.5.tar.gz
1.1.安装依赖包:
yum -y install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel gcc cc
2.解压:
tar xzvf git-2.9.5.tar.gz
3.进入git目录:
cd git-2.9.5
3.1安装perl-ExtUtils-MakeMaker:
yum install perl-ExtUtils-MakeMaker
4.执行配置文件:
autoconf
./configure
5.编译安装:
make
make install
6.验证:
git --verison
7.OK