链接:https://pan.baidu.com/s/1EBzAKyJPEQZSSCr_mrZOnQ?pwd=jziw
提取码:jziw
yum install git
只能装到1.8
配置环境:
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker -y
-y表示yes,不用在按一次y
cd /usr/local/src/
rz
上传压缩包:
tar xf git-2.9.5.tar.gz
cd git-2.9.5
指定路径
make prefix=/usr/local/git all
make prefix=/usr/local/git install
rm -rf /usr/bin/git
ln -s /usr/local/git/bin/git /usr/bin/git
git --version
标签:bin,git,安装,devel,篇文章,install,local,usr From: https://blog.51cto.com/u_16172166/7012384