John Bokma

Installing Git on OS X

August 23, 2016

Today I checked which version of Git was more recent, the Mac version on the official git site (2.9.2) or the version available via Mac Ports (2.9.3). Since the latter won, and also because I want to use Mac Ports for other software anyway, I decided to install Mac Ports first.

The version of git that comes with "El Capitan" is quite outdated:

john$ git --version
git version 2.7.4 (Apple Git-66)

While with Mac Ports I can install, at the time of writing:

john$ port search --name 'git*' | head -2
git @2.9.3 (devel)

Which I did, using:

sudo port -v install git

And after a minute or two I had access to version 2.9.3 of git:

john$ git --version
git version 2.9.3

home - blog - email

I am a freelance Perl programmer for hire, download my up-to-date resume (PDF).