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

查看:35
本文介绍了在 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 2.0.2, but I have 1.9.4.

我克隆了 git repo,但我不知道如何继续.

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

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

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 for solutions of this type

请帮忙!

推荐答案

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天全站免登陆