在 LTS 上安装更新版本的 git

Phi*_*ayo 11 10.04 git

我无法升级我的 lucid lynx 10.04 LTS,因为较新的 ubuntu 发行版无法在该计算机上运行。我需要安装一个 git 版本 1.7.10 来进行凭证管理。Git 版本是 10.04 LTS 上的 1.7.0.4:

$ dpkg -l *git*
+++-==============-==============-============================================
ii  git-core       1:1.7.0.4-1ubu fast, scalable, distributed revision control
Run Code Online (Sandbox Code Playgroud)

有没有办法或向后移植安装 git 1.7.10 或更新版本?

and*_*ing 14

PPAppa:git-core/ppa为各种 Ubuntu 版本提供了最新稳定版 Git 的向后移植。

在命令行上,您可以使用以下命令添加 PPA:

sudo add-apt-repository ppa:git-core/ppa
Run Code Online (Sandbox Code Playgroud)

如果您收到错误说明add-apt-repository未找到,请使用以下命令安装它:

sudo apt-get install python-software-properties
Run Code Online (Sandbox Code Playgroud)