linux上默认的git版本是
需要升级到
升级步骤如下:
1、卸载旧版本
yum remove git
2、获取github最新的Git安装包下载链接,执行下载
wget https://github.com/git/git/archive/v2.17.0.tar.gz ;
tar -zxvf v2.17.0.tar.gz ;
3、
cd git-2.17.0
make configure
./configure –prefix=/usr/local/git
make all doc
make install install-doc install-html
echo “export
- 1
- 2
前往页