git编译安装

使用源码编译安装可以安装最新版本的git

wget https://www.kernel.org/pub/software/scm/git/git-2.1.2.tar.gz
tar xf git-2.1.2.tar.gz 
cd git-2.1.2/
make prefix=/usr/local/git all
make prefix=/usr/local/git install
cd /usr/local/git/
验证
 
原文地址:https://www.cnblogs.com/shansongxian/p/6692160.html