Upgrading to the last version of Git from the source repository or PPA

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.

Answer

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

Attribution
Source : Link , Question Author : dapias , Answer Author : Anton Dozortsev

Leave a Comment