[root@izbp1cs2xc0txtdbbhn53nz ~]# yum -y install wget
[root@izbp1cs2xc0txtdbbhn53nz ~]# wget https://github.com/git/git/archive/v2.23.0.tar.gz
[root@izbp1cs2xc0txtdbbhn53nz ~]# yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
[root@localhost ~]# tar -zxvf v2.23.0.tar.gz
[root@localhost ~]# cd ~/git-2.23.0
[root@izbp1cs2xc0txtdbbhn53nz git-2.23.0]# make prefix=/usr/local all
[root@izbp1cs2xc0txtdbbhn53nz git-2.23.0]# make prefix=/usr/local install
#查看安装版本
[root@izbp1cs2xc0txtdbbhn53nz git-2.23.0]# git --version
[root@localhost git-2.23.0]# ssh -T git@github.com
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?
###docker build - < context.tar.gz
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-E2zoXO43-1603779409884)(C:\Users\MACHENIKE\AppData\Roaming\Typora\typora-user-images\image-20201025233104293.png)]