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
  • 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. Commented Jul 31, 2014 at 13:34

1 Answer 1

22

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
  • 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
    Commented Sep 22, 2014 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
    Commented Aug 11, 2016 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .