centos git 更新至2.28
- 删除之前的版本 yum remove git
- 下载最新版githttps://github.com/git/git/releases
- 解压: tar xzvf git…tar.gz
- 安装依赖
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
- make prefix=/usr/local/git all
- make prefix=/usr/local/git install
- vim /etc/profile
export PATH=$PATH:/usr/local/git/bin
- source /etc/profile
- git version