在LTS上安装更新版本的git

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

$ dpkg -l *git* +++-==============-==============-============================================ ii git-core 1:1.7.0.4-1ubu fast, scalable, distributed revision control 

有没有办法或后端来安装git 1.7.10或更新?

PPA ppa:git-core/ppa为各种Ubuntu版本提供了最新稳定版Git的后端。

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

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

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

 sudo apt-get install python-software-properties