Published: Fri 19 Dec 2014

Upgrade git to 2.2.1 using Homebrew on Mac

A announcement has just been made about a severe critical vulnerability in git.

After trying to update my git from 2.1.0 to 2.2.1 with Homebrew, I realised I was getting nowhere. brew upgrade git was reporting 2.1.0 as the correct version. The error? I needed to update homebrew as well. Here are the two commands you will need:

brew update
brew upgrade git

You can then check which version of git you have by inputting git --version

markconroy$ git --version
git version 2.2.1

If you like what I write, you might like to follow me on Twitter @markconroy

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.