1. 下载tar.gz的Git安装包到CentOS里
  2. 安装依赖sudo yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils- MakeMaker
  3. 解压Gitsudo tar -zxvf git-v2.8.0.tar.gz
  4. 进入git目录cd git-2.8.0/
  5. 编译,加个前缀sudo make prefix=/usr/local all
  6. 安装sudo make prefix=/usr/local install

标签: git