Centos 5上使用YUM安装GIT

网上搜索的基本上都是一样的内容

1.先安装git依赖的包 
yum install zlib-devel 
yum install openssl-devel 
yum install perl 
yum install cpio 
yum install expat-devel 
yum install gettext-devel 

2.安装autoconf 
yum install autoconf 

3.安装git 
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz 
tar xzvf git-latest.tar.gz 
cd git-{date} 
autoconf 
./configure --with-curl=/usr/local 
make 
make install
 

如果以上无法安装,可能是http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz地址失效了, 测试的时候是空文件。

后来在github上看到的解决办法

https://gist.github.com/eddarmitage/2001099

原文地址:https://www.cnblogs.com/lovelylife/p/5208578.html