I have checked this answer and followed the same steps.
My system throws
git is already the newest version.
But when i do git --version
it shows
git version 1.8.1.2
I need to install git >= 1.9.4.
I have several tutorials and all of them are suggesting above method but it doesn't work.
Edit:
Output of apt-cache policy git
git:
Installed: 1:2.4.6-0ppa1~ubuntu14.04.1
Candidate: 1:2.4.6-0ppa1~ubuntu14.04.1
Version table:
*** 1:2.4.6-0ppa1~ubuntu14.04.1 0
500 http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
1:1.9.1-1ubuntu0.1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1:1.9.1-1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
1:1.8.3.2-1 0
500 http://us.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
which git
gives
/usr/local/bin/git
apt-cache policy git
– A.B. Jul 27 '15 at 04:45which git
– A.B. Jul 27 '15 at 05:14