How to update Git version

git

#1

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

https://git-scm.com/

Latest source Release

2.7.1

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

I can not use many aliases :cry:

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


#2

Update it with sudo apt-get


#3
> 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


#4

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 http://tecadmin.net/install-git-on-ubuntu/#


#5

thank you VERY MUCH, works.