http://www.yingzinanfei.com/2016/09/22/centos-anzhuanggaobanbengit/
CentOS6.5自帶的git版本是1.7.1
卸載自帶的git
# yum remove git
# wget https://github.com/git/git/archive/v2.9.2.tar.gz
# tar zxvf v2.9.2.tar.gz# cd git-2.9.2
# make configure# ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv# make all doc# sudo make install install-doc install-html
# sudo vim /etc/profile在最後一行添加export PATH=/usr/local/git/bin:$PATH保存後使其立即生效# source /etc/profile
#git --version
File->Settings->Version Control->Git->Path to Git executable:選擇/usr/local/git/bin/git
http://xxxxxx/Linuxjc/1184785.html TechArticle