How to install git 2.1.0 and git client on linux CentOS 7

Posted: September 21, 2013 in FX Pipeline, Linux

Git-Logo

How to install git 2.1.0 and git client on linux centOS 7 / RHEL7

first check git version on centOS or red Hat
[rajiv@elitebook home]# git –version
git version 1.8.1

yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
cd /tmp
wget https://www.kernel.org/pub/software/scm/git/git-2.1.0.tar.gz
tar xzvf git-2.1.0.tar.gz
cd git-2.1.0
make prefix=/opt/git all
make prefix=/opt/git install
export PATH=”/opt/git/bin:$PATH”

[rajiv@elitebook home]# git –version
git version 2.1.0

for installation of git client on centos you can check out this post on my blog:
https://rajivpandit.wordpress.com/2013/08/04/rabbitvcs-subversion-client-for-linux-centos-6-4-rhel6/

 

you can also check GitEye

ColalbNet-GitEye

This free desktop app combines a simple-to-use graphical Git client with central visibility into essential developer tasks such as defect tracking, agile planning, code reviews and build services.

http://www.collab.net/giteyeapp

https://www.kernel.org/pub/software/scm/git/git-2.1.0.tar.gz

 

Thats It

Cheers

Advertisements
Comments
  1. Aaron says:

    If you are trying to install on a minimal install of EL6, you’ll also need the Perl-ExtUtils-MakeMaker package.

    yum install perl-ExtUtils-MakeMaker

  2. Gene says:

    For completeness, you could add:
    yum install gcc

  3. ruffp says:

    Very good article, and as Gene said, better to install “gcc” as well before. On my side, the adding the /opt/git/bin in tha path env was not enough; I desinstall the older git(1.7.x) but it was looking like something need the binary “git” in the /usr/bin, then I just made a symbolink link like this:
    > ln -s /opt/git/bin/git /usr/bin/git
    and it is perfect.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s