1.配置SSL
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUt
2.下载git-1.8.3.1.tar.gz
包
wget https://www.kernel.org/pub/software/scm/git/git-1.8.3.1.tar.gz
3.解压安装包
tar -zxvf git-1.8.3.1.tar.gz
4.切换目录
cd git-1.8.3.1
5.安装
make prefix=/usr/local/git all
6.部署
make prefix=/usr/local/git install
7.环境配置
echo "export PATH=$PATH:/usr/local/git/bin" >>/etc/bashrc
8.使配置生效
source /etc/bashrc
9.查看是否安装成功