CentOS上安装Git
安装依赖和Git
yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel openssl zlib curl autoconf tk wget http://git-core.googlecode.com/files/git-1.7.10.tar.gz tar xzvf git-latest.tar.gz cd git-2011-11-30 #你的目录可能不是这个 autoconf ./configure make sudo make install
检查版本
git --version