wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-master
autoconf
./configure --prefix=/usr/local
make && make install删除旧版
rm /usr/bin/git
新装的版本链接过去 ln -s /usr/local/bin/git /usr/bin/git
本文介绍了一种手动更新Git版本的方法,包括下载最新源代码、编译配置及替换原有版本的具体步骤。
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-master
autoconf
./configure --prefix=/usr/local
make && make install删除旧版
rm /usr/bin/git
新装的版本链接过去 ln -s /usr/local/bin/git /usr/bin/git
1587
1913
2577
511
1835

被折叠的 条评论
为什么被折叠?