git version upgrade

ubuntu

1,apt -y remove git
2,apt -y install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev autoconf asciidoc xmlto docbook2x make gcc
3,wget https://github.com/git/git/archive/v2.15.1.tar.gz
4,tar -zxf v2.15.1.tar.gz
5,cd git-2.15.1
6,make configure
7,./configure --prefix=/usr
8,make all doc info
9,make install install-doc install-html install-info
10,git --version

猜你喜欢

转载自blog.csdn.net/fan_ping/article/details/86538485