centos 安装 git
先安装依赖包
yum install -y curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel
cd /usr/local/src/ wget http://git-core.googlecode.com/files/git-1.7.10.tar.gz tar -zxvf git-1.7.10.tar.gz cd git-1.7.10 autoconf ./configure --prefix /usr/local/git1.8 make make install git --version