Because the old git version 1.7 is installed directly using yum, github requires that git 1.8.3 and later be written in ruby. Therefore, you should install ruby and install and configure the source cd/etc/yum using the source code. repo/mkdirbakmv *. /bak # configure the 163 source curl-Lhttp: // mirrors.163.com/.help/CentOS6-Base-163.
Because the old git version 1.7 is installed directly using yum, github requires a version above 1.8.3.
Git is written in ruby, so you should install ruby with the source code.
Configuration source
Cd/etc/yum. repo/mkdir bakmv *./bak # configure source curl-L http://mirrors.163.com/.help/CentOS6-Base-163.repo for 163> CentOS6-Base-163.repo # configure Source rpm-ivh license update for epel
Install dependency
yum install rubyyum install gccyum install gcc-g++yum install makeyum install libffi-devel yum install openssl-devel.x86_64yum install python-develyum install vimyum install curl-develyum install perl-ExtUtils-MakeMaker.x86_64yum install tcl tkyum install gettext yum install asciidocyum install xmlto
Compile and install
# Download unzip curl-O https://www.kernel.org/pub/software/scm/git/git-2.0.0.tar.gz tar-zxvf git-2.0.0.tar.gz cd git-2.0.0make configure; # as yourself. /configure -- prefix =/usr; # as yourselfmake all doc; # as yourselfmake install-doc install-html; # as root