I’ve seen a lot of questions on the web about how to update your Mac client to the latest version which contains the fix for the security vulnerability announced last week.
It is actually quite simple:
Open your terminal prompt and type the following:
If it comes back with the following result, then you are using Apple’s Git, not the offiical distro of Git.
This version is NOT patched.
Furthermore if you type,
and it returns
Then you are going to want to modify your PATH to make git look for the official distro (which we will install in just a sec) to just /usr/local/bin.
Let’s Fix it and switch Git Clients
Install Homebrew if you haven’t already. It is easy just copy and paste this in the terminal window.
Assuming you have homebrew installed, type the following:
Once it is installed, then type the following two lines, which will set our path to the local git distro instead of the Apple one.
and you will see:
That is it! You are now updated to the official distro of Git on your Mac. To update it in the future all you will need to do is run the following line:
Until next time, Michael signing off.