Upgrading git

git

$ wget http://git-core.googlecode.com/files/git-1.8.3.4.tar.gz
$ wget -O git-manpages-1.8.3.4.tar.gz http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.3.4.tar.gz&can=2&q=
Next, install all required libraries before building GIT:
$ sudo yum install zlib-devel perl-CPAN gettext
Now let’s untar and build and install GIT in the /usr directory:
$ tar xvfz git-1.8.3.4.tar.gz
$ cd git-1.8.3.4
$ ./configure
$ make
$ sudo make prefix=/usr install
$ git –version
git version 1.8.3.4

  • See more at: http://www.unixmen.com/how-to-install-latest-git-on-rhel-6-centos-6/#sthash.SAZxuE6f.dpuf