1

I'm tring to install the latest git on linux (debian/ubuntu)

I tried

sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

It got me

git --version
git version 2.7.4

But according to this article: https://stackoverflow.com/a/37293198 a more recent version exists.

(https://github.com/git/git/blob/master/RelNotes)

american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80

1 Answers1

6

The command set

sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

indeed installs the latest git. However you might want to try the command

which git

and see if you're executing the old binary, or the newly installed one. At least that was the issue in my case.

american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80