CentOS 6.5自带的git版本是git 1.7.1,下面我来进行一次升级,升级到git 2.9.0,亲测可用,贴出本人的history。
[root@localhost git-2.9.0]# history 20 506 git --version 507 yum remove git 508 yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel 509 yum -y install gcc perl-ExtUtils-MakeMaker 510 yum remove git 511 cd /usr/src/ 512 wget https://www.kernel.org/pub/software/scm/git/git-2.9.0.tar.gz 513 tar xzf git-2.9.0.tar.gz 514 ls 515 cd git-2.9.0 516 make prefix=/usr/local/git all 517 make prefix=/usr/local/git install 518 echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc 519 vim /etc/bashrc 520 source /etc/bashrc 521 git --version 522 history 20 [root@localhost git-2.9.0]#
文章的脚注信息由WordPress的wp-posturl插件自动生成