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插件自动生成

微信扫一扫,打赏作者吧~![[已解决]nc命令报错 close: Bad file descriptor](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2022/03/Snipaste_2022-03-18_20-16-48.png&w=280&h=210&zc=1)
![[已解决]SecureCRT/SSH 连接Linux缓慢](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/07/ssh_slow.jpg&w=280&h=210&zc=1)
![[转载]Linux的tickless设置](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.litrin.net/wp-content/uploads/2018/11/kernel_menuconfig_tickless-1.png&w=280&h=210&zc=1)
![[整理]鲲鹏性能优化十板斧(五)——应用程序性能调优<TaiShan特战队出品>](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/03/1-4.jpg&w=280&h=210&zc=1)