8

I want to upgrade git using the source repository within Ubuntu. As you note, the last stable version is 2.0.2, but I have 1.9.4.

I cloned the git repository, but I'm not sure how to continue.

I want to do that in some way I can understand how to interact with the branches and tags of the repository, so I am not searching solutions of this type.

  • 1
    The next step is to compile git - try following the git online documentation, which is generally rather good. If you have difficulties try to seek help at StackOverflow, this is not really an Ubuntu related issue. – Luís de Sousa Jul 31 '14 at 13:34
21

Install Git via once and you will be always have last updates.

Just run this commands to install/upgrade current version:

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

After that you should have this result:

$ git --version 
git version 2.0.4
  • 2
    that worked. thanks. The official page git-scm.com/download/linux does not have this information. It just says to run the install command. If i do that on my 64bit 14.04 Ubuntu , it just says "git is already the newest version.", which is not true. – faizal Sep 22 '14 at 7:19
  • 1
    Helped my with windows-linux-subsystem too. since otherwise it only installs git 1.9 with apt-get install git – vittore Aug 11 '16 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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