【git】升级git
升级git
确认当前版本
git --version
切换root账号
su root
配置源:启用wandisco git源,在此之前我们先写入新yum存储库配置文件,在终端输入:
cat > /etc/yum.repos.d/wandisco-git.repo << 'EOF'
[wandisco-git]
name=Wandisco GIT Repository
baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
EOF
导入存储库GPG密钥
sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
安装git
yum install git
验证git版本
git --version
yum install https://repo.ius.io/ius-release-el7.rpm -y
yum remove git -y
yum install git236 -y

浙公网安备 33010602011771号