1 Introduction Using Coding to manage projects, the git version required above is 1.8.0 or above, and the git version installed automatically on many yum sources is 1.7, so you need to master the manual compilation and installation of git methods. 2. Install git dependencies yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker 3. Delete the existing git yum remove git 4. Download the git source code Switch to the directory where your package files are stored cd /usr/src Download the git installation package wget https://www.kernel.org/pub/software/scm/git/git-2.8.3.tar.gz Unzip the git installation package tar -zxvf git-2.8.3.tar.gz cd git-2.8.3 Configure the git installation path ./configure prefix=/usr/local/git/ compile and install make && make install View git version number git --version git is installed 5. Add git commands to bash vi /etc/profile add in the last line export PATH=$PATH:/usr/local/git/bin Make the configuration file take effect immediately source /etc/profile