Linux-Git 安装
首先先安装一些依赖包

yum install -y perl-ExtUtils-MakeMaker package
yum install -y tcl  build-essential tk gettext

下载并安装

#下载
wget https://github.com/git/git/archive/v2.13.3.tar.gz

#解压
tar -zxvf v2.13.3.tar.gz

#进入目录
cd git-2.13.3/

#编译安装
make configure
./configure --prefix=/usr/local/git
make && make install

 #加入系统变量

echo -e '\nexport PATH=$PATH:/usr/local/git/bin' >> /etc/profile && source /etc/profile

验证是否安装成功

git --version