下载地址:https://github.com/git/git/archive/v2.4.5.tar.gz
准备工作:yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel curl
422 2017-05-18 08:27:25 root tar -zvxf git-2.4.5.tar.gz
423 2017-05-18 08:27:32 root cd git-2.4.5
424 2017-05-18 08:27:41 root autoconf
426 2017-05-18 08:32:40 root ./configure
427 2017-05-18 08:32:48 root make
428 2017-05-18 08:34:59 root make install
429 2017-05-18 08:35:18 root git --version
//运行到这里发现在目录:/usr/bin/ 下找不到git, -bash: /usr/bin/git: No such file or directory
430 2017-05-18 08:36:47 root whereis git
//查找到git在/usr/local/bin
433 2017-05-18 08:39:40 root ln -s /usr/local/bin/* /usr/bin/
434 2017-05-18 08:39:51 root git --version