Proposed installation
1. Follow the steps for installing the official website
https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git
2. Download the package of steps
https://mirrors.edge.kernel.org/pub/software/scm/git/
Select Download the latest version
3. Run make prefix = / usr / local all given
/ Bin / sh: cc: command not found
The system is missing gcc, gcc install what problems can be solved
yum -y install gcc automake autoconf libtool make
do it again
make prefix=/usr/local all
sudo make prefix=/usr/local install
4. Test whether the installation is successful, execute the command
git