Upgrade Git1.7.1 to Git2.2.1 in Centos
Installation requirements:>#yuminstallcurl-develexpat-develgettext-developenssl-develzlib-develasciidoc>#yuminstallasciidocxmlto-y>#yuminstallgccperl-ExtUtils-MakeMakererror:```/utf8.c:463:undefinedreferenceto`libiconv'```>#wgethttp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz>#tarzxvflibiconv-1.14.tar.gz>#cdlibiconv-1.14>#./configure--prefix=/usr/local/libiconv>#make&&makeinstallUninstall Centos's built-in git1.7.1:
Use git-version to view the version of the system. Cento6.5 should contain the git version 1.7.1.
>#yumremovegit-y
Download git2.2.1 and add git to Environment Variables
>#wget>#tarzxvfv2.2.1.tar.gz>#cdgit-2.2.1>#makeconfigure#./configure--prefix=/usr/local/git--with-iconv=/usr/local/libiconv>#makealldoc>#makeinstallinstall-docinstall-html>#echo"exportPATH=$PATH:/usr/local/git/bin">>/etc/bashrc>#source/etc/bashrc
View version number
>#git--version>gitversion2.2.1