Article directory
Today, I am tinkering with the web version of VSCode, and I always prompt that the git version is too low. After looking at the 1.8.3 version, after experiments, the following methods can perfectly achieve the goal
- The highest version of git that comes with CentOS7 is 1.8.3.1 and cannot be updated through yum
- Make sure you are logged in with the root user
- Configure the repository, add source content, and save
vim /etc/yum.repos.d/wandisco-git.repo
[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
- Import the repository GPG key
rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
- install git
yum install git
- view version
[root@tianxin ~]# git version
git version 2.31.1