繁体   English   中英

在 Ubuntu 中从源代码库升级 git

[英]Upgrading git from the source repository in Ubuntu

我想使用 Ubuntu 中的源存储库升级 git。 如您所见,最后一个稳定版本是 2.0.2,但我有 1.9.4。

我克隆了 git repo,但我不确定如何继续。

我想以某种方式做到这一点,我可以理解如何与 repo 的分支和标签进行交互,所以我不是在寻找这种类型的解决方案

请帮忙!

2.0.2 已于 3 天前在此 PPA 中上传: https : //launchpad.net/~git-core/+archive/ubuntu/ppa

sudo add-apt-repository ppa:git-core/ppa

但是如果这不是你想要的,并且你已经克隆了 git repo,那么

sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev bzip2
cd /path/to/local/clone/of/git
./configure
make
sudo make install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM