1.輸入yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc -y按回車(chē)鍵安裝依賴(lài)軟件
2.輸入yum install gcc perl-ExtUtils-MakeMaker -y按回車(chē)鍵安裝依賴(lài)軟件
3.輸入yum remove git -y,按回車(chē)鍵卸載舊版git
4.輸入wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz按回車(chē)鍵
5.輸入tar -vxf git-2.15.1.tar.xz,按回車(chē)鍵
6.輸入cd git-2.15.1按回車(chē)鍵
7.輸入make git all按回車(chē)鍵
8.輸入make git install按回車(chē)鍵
9.輸入source /etc/profile按回車(chē)鍵
10.輸入git --version可以查看版本