======CentOS 安装最新版本git====== 安装编译环境 * 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://www.kernel.org/pub/software/scm/git/ * 发布版本下载curl -O https://www.kernel.org/pub/software/scm/git/git-1.9.4.tar.gz 编译和安装 * make prefix=/usr * make prefix=/usr install 查看git版本 * git version