CentOS Install (update) git (pro-test active)

Source: Internet
Author: User

Transferred from: http://blog.sina.com.cn/s/blog_3fe961ae0102w9ui.html#cmt_2977351

That's great!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Centos 6.5 is installed by default in the Git 1.7.X version, there will be some strange problems during the use of the user name, password support is not very friendly.
Update git on Centos6.5 to 2.0.5 by doing the following:

1. Install the package you need to compile Git
# yum Install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
# yum Install gcc Perl-extutils-makemaker

2. Delete existing Git
# yum Remove git

3. Download git source code
# CD/USR/SRC
# wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
# tar Xzf git-2.0.5.tar.gz

4. Compiling the installation
# CD git-2.0.5
# Make Prefix=/usr/local/git All
# Make Prefix=/usr/local/git Install
# echo "Export path= $PATH:/usr/local/git/bin" >>/ETC/BASHRC
# SOURCE/ETC/BASHRC

5. Check the version number
# git--version

git version 2.0.5

CentOS Install (update) git (pro-test active)

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.