Ubuntu – How to upgrade Git on Ubuntu Hardy


I have Git version installed, but I think this must be an old version. I'm running Ubuntu Hardy 8.04. I need to install at least version 1.6 to get a Git GUI to work. How do I upgrade my installation?

Update: I managed to upgrade my installation of Git, but I also realized that my version of Ubuntu was old so I upgraded to the newest version, which automatically gave me access to newer packages (including Git).

Best Answer

I used the PPA for Ubuntu Git Maintainers to update Git from on Hardy to No compiling, just add another entry to your sources list, apt-get update and you're good to go.


More info on the page (Technical details > Read about installing).

Or just run:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git