git–基础–04–安装
1、配置存储库,添加源内容
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
2、导入存储库GPG密钥
rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
3、安装git
yum install -y git
git version