centos升級git版本

# 1.通過git源升級,
vim /etc/yum.repos.d/wandisco-git.repo 

# 2.新建配置文件
[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
# 3.更新git
yum -y update git

如果更新的過程裏出錯,則移除,重新安裝
yum remove git
yum install git

# 4.校對版本
git --version

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章