赞
踩
(1)查看版本
git --version
(2)卸载
yum remove git
(1) yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc
(2) yum install gcc perl-ExtUtils-MakeMaker
(1) cd /user/local/src/
(2) wget -O git.zip https://github.com/git/git/archive/master.zip
(3) unzip git.zip
(4) cd git-master
(5) make prefix=/usr/local/git all
(6) make prefix=/usr/local/git install
(1) echo “export PATH=$PATH:/usr/local/git/bin” >> ~/.bashrc
(2) source ~/.bashrc
然后再使用 git --version查看git版本,现在最新的版本应该是git version 2.24.0-rc0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。