yum安裝git-v2.x版本

首先卸載舊版本gitgit

yum remove git  
直接使用這個命令下載的仍是1.7.1版本的。不使用源碼進行編譯是由於依賴太多,總會缺東西。
yum install git
可使用 WANDisco's CentOS repository去安裝 Git 2.x.centos


Install WANDisco repo package:yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
Install the latest version of Git 2.x:
yum install git

原文:https://blog.csdn.net/t3369/article/details/79562853 .net

相關文章
相關標籤/搜索