yum install git得到的版本太老,是1.7.1.
这里介绍如何编译安装Git 1.8
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
cd /usr/src
wget https://git-core.googlecode.com/files/git-1.8.5.3.tar.gz
tar xzf git-1.8.5.3.tar.gz
cd git-1.8.5.3
./configure
make
make prefix=/usr install
git --version
一切ok了。