Centos 7 服务器上默认安装的 Git 是 1.8.3.1 版本的,太低。
卸载
首先,把老版本的 Git 卸掉。
sudo yum -y remove git
sudo yum -y remove git-*
安装
- 添加 End Point 到 CentOS 7 仓库
sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
- 安装 Git
yum -y install git
- 查看安装后的 Git 版本、
[root@localhost soft]# git -v
git version 2.41.0
网友评论