CentOS 6/7 自带源的 git 太老了,docker build 报错,只好利用 WANDisco CentOS 源来安装 Git 2.x。

安装 WANDisco CentOS 源

yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
- or -
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
- or -
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm

安装最新版本的 Git 2.x:

yum install git

验证 git 版本

git --version

截止至2020.06.11,WANDisco里最近的 git 版本是 2.22.0.

搬瓦工年付$187机房套餐补货了,电信联通优化,512M内存/500G流量/1G带宽,建站稳定,优惠码:BWH1ZBPVK,【点击购买】!
搬瓦工年付$28CN2高速线路,512M内存/500G流量/1G带宽,电信联通优化,延迟低,速度快,建站稳定,优惠码同上,【点击购买】!
Last modification:June 11th, 2020 at 09:07 pm
If you think my article is useful to you, please feel free to appreciate