Upgrade Git on OSX with brew


There is a recent Git security update that you MUST to install. In the case of OSX, I realized I was using a fairly primitive version, so I will use brew to install this new version and get rid of the old.

For the system to not use the older version, run on the Terminal:

sudo mv /usr/bin/git /usr/bin/git.old

Now install with brew the latest version on /usr/local/bin/git:

brew install git


brew is the only way to have the latest versions, due the official package you find to install from the web git-scm.com is obsolete.

I request your permission to obtain statistical data on its navigation on this website. If you continue to browse I consider you accept the use of cookies. This site is adapted to be compliant with the new law about General Data Protection Regulation. OK | More Information