Git – How to Install a More Recent Version of Git on Ubuntu LTS


I can't upgrade my lucid lynx 10.04 LTS because newer distributions of ubuntu don't work on that computer. I need to install a git version 1.7.10 for credential management. Git version is on 10.04 LTS:

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

Is there a way or a backport to install git 1.7.10 or newer ?

Best Answer

The PPA ppa:git-core/ppa provides backports of the most current stable version of Git for various Ubuntu versions.

On the command line you can add the PPA using:

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

If you receive an error stating add-apt-repository was not found, install it with:

sudo apt-get install python-software-properties
Related Question