在Ubuntu中从源代码库升级git [英] Upgrading git from the source repository in Ubuntu

查看:107
本文介绍了在Ubuntu中从源代码库升级git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Ubuntu中使用源代码库来升级git。正如你注意到的,最后一个稳定版本是2.0.2,但我有1.9.4。

I want to upgrade git using the source repository in Ubuntu. As you note, the last stable version is the 2.0.2, but I have the 1.9.4.

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

I cloned the git repo, but I'm not sure how to continue.

我想要做的在某种程度上,我可以理解如何与回购的分支机构和标签进行互动,所以我不是在寻找解决方案的此类型

I want to do that in some way I can understand how to interact with the branches and tags of the repo, so I am not searching solutions of this type

请帮忙!

Please help!

推荐答案

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

2.0.2 has been uploaded 3 days ago in this PPA: https://launchpad.net/~git-core/+archive/ubuntu/ppa

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

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

But if this isn't what you want, and you have clone the git repo, then

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

这篇关于在Ubuntu中从源代码库升级git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆