linux git更新php代码,Linux中升级git到1.8.3版本方法

博主分享了在CentOS6.4系统中通过YUM安装Git后,因push代码遇到问题,需要升级到1.8.3及以上版本的解决过程。通过下载PUIAS repo和GPG key,然后验证并启用相关repository,最后成功安装了Git1.8.3。虽然博主对这个解决方案并不完全满意,但目前没有更多时间寻找更好的方法。
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值