1、下载包(自行百度)
2、安装git
# tar zxf git-2.9.3.tar.gz -C /usr/local/ # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker -y # cd /usr/local/git-2.9.3/ # ./configure prefix=/usr/local/git # make && make install
# tail /etc/profile export PATH=$PATH:/usr/local/git/bin
# git --version git version 2.9.3