Reference Source: http://blog.csdn.net/lowkeyway/article/details/7190884
One: Installation dependent
Yum Install Zlib-devel
Yum Install Openssl-devel
Yum Install Perl
Yum Install Cpio
Yum Install Expat-devel
Yum Install Gettext-devel
Yum Install autoconf
Two: Download git
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
TARXZVF GIT-LATEST.TAR.XZ
The. tar.gz source is an empty file so download. XZ can select files to download via http://www.codemonkey.org.uk/projects/git-snapshots/git/
Three: Unzip:
xz-d GIT-LATEST.TAR.XZ//Double compression package, extract Git-latest.tar file after decompression
TAR-XVF Git-latest.tar
Install XZ If the XZ command is invalid
Yum-y Install XZ
Four: Install Git
LS//View the extracted folder name
CD git-2015-04-12//Enter the folder to actually see the folder name as the subject
Autoconf
./configure--with-curl=/usr/local
Make
Make install
Five: Installation complete and use
Git--version
The installation succeeds when the version number appears
The path to the CD to extract
git clone https://git.oschina.net/wisdomofgod/wisdom.git//followed by git address to download
CentOS Install git