蛋疼的阿里云,git版本居然才1.9.只能手动安装了.
- 预装
apt-get update
apt-get --yes install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev autoconf
- git源码列表
https://www.kernel.org/pub/software/scm/git/
- 选一个最新的:
wget https://www.kernel.org/pub/software/scm/git/git-2.7.2.tar.gz
tar -xzf git-2.7.2.tar.gz
cd git-2.7.2
make configure && ./configure --prefix=
/usr && make && make install
- 搞定