Update Git on Mac OS to Avoid Security Vulnerability

FacebooktwitterlinkedinmailFacebooktwitterlinkedinmailby feather

When a friend first forwarded me notice of a security vulnerability in the Github client for Mac and Windows, I thought it didn’t affect me, because I only use git on the command line. Then, I saw another article which made it clear that the vulnerability is in the git code itself (not any particular client implementation).

Here’s how to update your command-line client on Mac OS.

Run git --version from your command-line.

If it’s not at version 2.2.1, run the following:


brew update
brew upgrade git

Confirm that you have the latest version:


$ git --version
git version 2.2.1

(If you don’t have homebrew installed yet, install it first:  http://brew.sh/ )

Cheers.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.