Linux中升级git到1.8.3版本方法

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

    我的Linux安装的是Centos6.4,昨天在系统里使用yum安装了git,可是在往git@osc上push代码的时候,报出了错误,社区里有人说需要升级git到1.8.3版本以上,于是就搜索到了这么一个方法,挺好用的,我在这里mark一下,以便以后用到的时候拿出来,嘿嘿。


1. Download PUIAS repo:

wget -O /etc/yum.repos.d/PUIAS_6_computational.repo https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/install/centos/PUIAS_6_computational.repo

2. Next download and install the GPG key:

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-puias

3. Verify that the key was installed successfully:

rpm -qa gpg*

4. Verify that the EPEL and PUIAS Computational repositories are enabled:

yum repolist

5. Install Git 1.8

yum --enablerepo=PUIAS_6_computational install git

Note: I am not quite happy with this solution, as it only netted me Git 1.8.3 however I do not have the time to find a better solution right now.


学PHP的小蚂蚁 原创博客 http://my.oschina.net/woshixiaomayi/blog


转载于:https://my.oschina.net/woshixiaomayi/blog/534430

你可能感兴趣的:(Linux中升级git到1.8.3版本方法)