Centos7 更新git

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc -y
yum install  gcc perl-ExtUtils-MakeMaker -y
yum remove git
curl -O https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.29.3.tar.xz
tar -xvf git-2.29.3.tar.xz
cd git-2.29.3
make prefix=/usr/local/git all
make prefix=/usr/local/git install

至此安装完毕

posted @ 2022-05-22 12:34  GreeneGe  阅读(84)  评论(0编辑  收藏  举报

https://github.com/Glf9832