How to update Git version



moisesroj0:~/workspace (master) $ git --version
git version 1.9.1 :unamused: :neutral_face:

Latest source Release


moisesroj0:~/workspace (master) $ c9 install git
Cloud9 Username: moisesroj0
Package with id ‘git’ does not exist

I can not use many aliases :cry:

moisesroj0:~/workspace (master) $ git commit -am “please :relaxed:


Update it with sudo apt-get

> moisesroj0:~/workspace (master) $ sudo apt-get install git
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> git is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> moisesroj0:~/workspace (master) $ git --version
> git version 1.9.1
> moisesroj0:~/workspace (master) $ 

it does not work


1.9.1 is the latest version in the Ubuntu official repo. To update it past that you’ll have to add a third party repo. See instructions here


thank you VERY MUCH, works.