Install GIT1. Git needs to call the code of the library such as Curl,zlib,openssl,expat,libiconv, so you need to install these dependencies first. Yum Install Curl-devel expat-devel gettext-devel Openssl-devel Zlib-devel Perl-devel2. Then go to the official website http://git-scm.com/download/linux Download the latest version of the source installation, or use the system-provided package management tool to install. wget https://www.kernel.org/pub/software/scm/ Git/git-2.3.5.tar.gz3. Download and unzip into folder tar Xzf git-2.3.5.tar.gz
CD git-2.3.54. Online search for a half-day information found no useful to look at the Readme to solve through the readme know installation needs to view the install file
Normally you can just do ' make ' followed by ' make install ', and that
Would install the GIT programs in your own ~/bin/directory. If you want
To does a global install, you can do
$ make prefix=/usr all DOC info; # as yourself
# make PREFIX=/USR install Install-doc install-html install-info; # as Root
(or prefix=/usr/local, of course).
This is what I'm using:
Make prefix=/usr/local All
Make prefix=/usr/local Install
How to install the GIT server in CentOS