Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

How do I upgrade Git on Ubuntu?

share|improve this question

marked as duplicate by Excellll, Kevin Panko, Matthew Williams, music2myear, Nifle Oct 15 at 20:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4 Answers 4

up vote 8 down vote accepted

If you want the latest git on your system, add this ppa in your software sources. Then install git-core if it wasn't done before, and update your system.

However I would suggest to upgrade to an unsupported package only if you require some specific features included only in the latest version.

share|improve this answer
sudo apt-get update
sudo apt-get upgrade

If you already have it installed and everything is clean.

If you want the absolute newest version and that is not in the repositories, there is a guide to doing that here: http://ropiku.wordpress.com/2008/04/14/updating-git-on-ubuntu/

share|improve this answer
    
that tutorial you linked worked great for me, thanks! –  Andrew Oct 14 '09 at 23:43

Just to summarize:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get upgrade
share|improve this answer

It's not the newest question, but I found myself asking the same and the only thing that worked was installing from the github repositories following the guide from the git book, which I guess is the most reliable when it comes to updates and changes anyway.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.