编译基础环境环境:
yum -y install gcc make
安装依赖包
yum install -y curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel
下载最新的git源代码:https://github.com/git/git
安装git:
$ make configure ;# as yourself$ ./configure --prefix=/usr( or prefix=/usr/local) ;# 你的安装目录$ make all doc ;# as yourself# make install install-doc install-html;# as root