Centos7.6如何升级git版本
1.输入yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc -y按回车键安装依赖软件2.输入yum install gcc perl-ExtUtils-MakeMaker -y按回车键安装依赖软件
3.输入yum remove git -y,按回车键卸载旧版git
4.输入wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz按回车键
5.输入tar -vxf git-2.15.1.tar.xz,按回车键
6.输入cd git-2.15.1按回车键
7.输入make git all按回车键
8.输入make git install按回车键
9.输入source /etc/profile按回车键
10.输入git --version可以查看版本
页:
[1]