在CentOS中安装git步骤如下:
(1)$ yum install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel
(2)$ wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
(3)$ tar -xzvf git-latest.tar.gz
(4)$ cd git-{date}
(5)$ autoconf
(6)$ ./configure
(7)$ make
(8)$ make install
安装完成后可以通过$ git --version来查看当前版本