1000 yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc
1001 yum install gcc perl-ExtUtils-MakeMaker
1002 git version
1003 yum remove git
1004 cd /usr/local/src/
1005 wget https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz
1006 ls
1007 tar -vxf git-2.15.1.tar.xz
1008 ls
1009 cd git-2.15.1
1010 ls
1011 make prefix=/usr/local/git all
1012 make prefix=/usr/local/git install
1013 echo “export PATH=$PATH:/usr/local/git/bin” >> /etc/profile
1014 source /etc/profile
1015 git version
1016 history
centos 更新指定git版本
最新推荐文章于 2024-02-19 11:12:49 发布