Upgrade CentOS git 1.7.1 to 1.7.12

Source: Internet
Author: User

The version of Git in the CentOS source is 1.7.1, and if the remote-created library has a higher version of Git than it does, it will block permanently when the pull is changed, and it will fail on push.

The following steps make it easy to upgrade a git version:


# rpm-i ' http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm ' # rpm--import http ://apt.sw.be/rpm-gpg-key.dag.txt# Vim/etc/yum.repos.d/rpmforge.repo

Change "enabled = 0" In this section of [Rpmforge-extras] to "enabled = 1" to save the exit.



# Yum Update git# Vim/etc/yum.repos.d/rpmforge.repo

[Rpmforge-extras] In this section, " enabled = 1 " change to" enabled = 0 "to save the exit.

To view the git version:

git version 1.7.12.4



Get.



Upgrade CentOS git 1.7.1 to 1.7.12

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.