Install Git on OSX 10.8 ALL,

My project is located on GitHub which recently switched to using TLS1.2, which is incompatible with the OpenSSL version OSX 10.8 ships with.

So I tried to build Git from sources.

I downloaded the archive, unpack it and created config.mak file where I put following:

NO_GETTEXT=Yes
NO_OPENSSL=Yes


The build finished successfully, but when I tried to run it I still received:

MyMac:dbhandler igorkorot$ /Users/igorkorot/git-2.17.0/git pull
fatal: unable to access 'https://github.com/oneeyeman1/dbhandler.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version


Is there an easy way to check what version of OpenSSL will be linked if I remove the line NO_OPENSSL=YES from the config.mak file? I will try to remove that line and do make clean &amp;&amp; make after that. I did update whatever the notification was suggesting, but don't know if OpenSSL was part of the update.

I just need the latest version of the library. Hopefully there is still one available for OSX 10.8.

The machine is old and I don't want to install anything extra (homebrew or such) unless absolutely necessary.

TIA!
I had Homebrew installed already, so these four steps were enough:


brew install openssl
brew install git
mv /usr/bin/git /usr/bin/git.old
Add [http] sslVersion = tlsv1.2 to $HOME/.gitconfig


Note that you need to install new openssl before building new git, otherwise it will link against the old system version of openssl.