centos 6 安装git 1.8.3

我的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

你可能感兴趣的:(centos 6 安装git 1.8.3)