Comments on How to install the latest GIT version on CentOS

How to install the latest GIT version on CentOSGit is a fairly popular free open source distributed Version Control System (VCS) expressly designed to tackle projects of varying scales (from the small ones to the significantly large ones)with incredible speed and efficiency. It is mainly used for source code management, and remains primarily focused on speed, seamless support for distributed non-linear workflows and data integrity. This tutorial explains the process of installing and using GIT on CentOS in a detailed manner.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: jmervine

I also had to install 'perl-devel':

yum install perl-devel

By: roniram

Problem:

I receive an error launching this command "make prefix=/usr/local/git all":

/usr/bin/perl Makefile.PL PREFIX='/usr/local/git' INSTALL_BASE='' --localedir='/usr/local/git/share/locale' Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/per

I solved it installing:

yum install perl-ExtUtils-MakeMaker

By: Wayne Walker

This line:

    echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrcShould instead be:

    echo 'PATH=/usr/local/git/bin:$PATH' >> /etc/profile.d/git.sh

Note the single quotes, the change in order, and the change in filename.Changes to /etc/bashrc will be automatically overriddem the next time that the "setup" package is updated.You want /usr/local/git/bin at the start of the PATH so that is will be un instead of he old git in /usr/bin.You want single quotes so you get this in the file:

[root@ut ~]# cat /etc/profile.d/git.sh 

PATH=/usr/local/git/bin:$PATH

rather than this:

[root@ut ~]# cat /etc/profile.d/git-oops.sh

PATH=/usr/local/git/bin:/usr/lib64/qt-3.3/bin:/root/perl5/bin:/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin

By: Mojtaba Iran