Upgrade git on Centos

Most of the Linux distros comes with git version 1.6/1.7 .If you want to upgrade it , you need to compile it from source

Install dependencies

1 yum install curldevel expatdevel gettextdevel openssldevel zlibdevel

Now you can download latest version of git from github

1 2 3 4 5 6 7 8 git clone https://github.com/git/git.git   cd git make configure ./configure make all make install  

Now check git version using

1 2 git version git version 2.10.1.502.g6598894

Author: , 0000-00-00