标签:
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
# yum install gcc perl-ExtUtils-MakeMaker
# yum remove git
# cd /usr/src
# wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
# tar xzf git-2.0.5.tar.gz
# cd git-2.0.5
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# echo “export PATH=$PATH:/usr/local/git/bin” >> /etc/bashrc
# source /etc/bashrc
# git –version
git version 2.0.5
修改环境变量为git所在/usr/local/git/bin:
标签:
原文地址:http://www.cnblogs.com/legend-song/p/5208531.html