wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
./configure --prefix=/usr/local/git --with-curl --with-expat
make && make install
--with-curl --with-expat 解决通过http或https连接远程仓库的需要
原文:http://blog.51cto.com/12965094/2328644