当前位置:   article > 正文

linux下git升级_linux git升级到1.9

linux git升级到1.9

安装需求:

  1. ># yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc
  2. ># yum install gcc perl-ExtUtils-MakeMaker

 

卸载Centos自带的git:

通过git –version查看系统带的版本,Cento7.0应该自带的是git版本是1.8.1

># yum remove git

 

下载git2.2.1并将git添加到环境变量中:

  1. ># wget https://github.com/git/git/archive/v2.2.1.tar.gz
  2. ># tar zxvf v2.2.1.tar.gz
  3. ># cd git-2.2.1
  4. ># make configure
  5. ># ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv
  6. ># make all doc
  7. ># make install install-doc install-html
  8. ># echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
  9. ># source /etc/bashrc

查看git版本:

  1. ># git --version
  2. >git version 2.2.1

 

另外链接:https://blog.csdn.net/zxy987872674/article/details/79220469

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/668382
推荐阅读
相关标签
  

闽ICP备14008679号