Install Git in CentOS source code --- start with recovery content --- today, a student asked me to help him download the android source code. No problem. The official android source code can only be obtained through git. Therefore, install git first. Because I have already configured the 163 source and rpmforge and epel, you can directly install the yum install git function. The pitfall is coming. The source code is to be downloaded. The git version is later than 1.7.2 !!! The git version I downloaded through yum is 1.7.1. Suddenly burst into tears... okay, I can only recognize it. Download a git source code. I searched the internet and found a lot. The following is used for memo... 1. install the dependency package yum install curl-devel yum install zlib-devel yum install perl-devel yum install gettext-devel yum install expat-devel yum install openssl-devel 2. download the latest pack https://code.google.com/p/git-core/downloads/list git-xx.tar.gz 3. I usually copy to the/usr/src directory and decompress tar zxvf git-xx.tar.gz 4. go to the decompressed directory cd git-xx 5. autoconf 6. /configure -- prefix =/usr/local 7 make 8 make install 9 check whether the installation is successful git -- version