赞
踩
yum remove git yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker wget https://www.kernel.org/pub/software/scm/git/git-2.31.1.tar.gz tar -zxvf git-2.31.1.tar.gz cd git-2.31.1 chmod u+x ./configure ./configure prefix=/usr/local/git/ make && make install vim /etc/profile 追加: export PATH=$PATH:/usr/local/git/bin source /etc/profile git --version
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。