编译基础环境环境
1 | yum -y install gcc make |
确保已安装了依赖的包
1 | yum install -y curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel |
569 wgethttp://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xz
572 xz -d git-latest.tar.xz
575 tar -xvf git-latest.tar
576 cd git-2015-08-04/
578 autoconf
579 ./configure
580 make && make install
ln -s/usr/local/bin/git /usr/bin/git