git_osx_installer icon indicating copy to clipboard operation
git_osx_installer copied to clipboard

Installed 2.27.0, but "git version" in command line still says 2.20.1

Open lynna-spidersilk opened this issue 5 years ago • 1 comments

I am trying to update Git on my Mac due to an incompatibility with a remote repository that's running a higher version. I downloaded the installer for version 2.27.0, and ran it, and it said it was installed successfully.

But when I went into Terminal and entered "git version" to verify, it responded with "2.20.1 (Apple Git-117)". The old version I was trying to replace.

I've read that Macs come with some form of Git pre-installed with Xcode, so I'm guessing that's what the "Apple Git" reference means... Does that mean I've now got two different versions of Git installed? If so, how do I get my Mac to use the newer version?

lynna-spidersilk avatar Sep 02 '20 23:09 lynna-spidersilk

Hi Lynna, Have you first uninstalled the old version? Here is a video that shows how to: https://modulesunraveled.com/installing-git/updating-git-older-version-latest-release I hope it helps

black-dalia avatar Oct 21 '20 15:10 black-dalia