Upgrading Git on MacOS X Lion

This was way harder than it needs to be, because MacOS X Lion ships with git 1.7.4.4 in /usr/bin.  Here’s a quick sequence of steps:

  1. Download and install latest version from http://git-scm.com/.  This appears to work but won’t change anything from the command line.  The new version is installed in /usr/local/git.
  2. Reconfigure your path to put /usr/local/git/bin in front of /usr/bin.  Something like this in your ~/.bash_profile:
    export PATH=/usr/local/git/bin:$PATH
This entry was posted in I'm on a Mac, Technical and tagged , . Bookmark the permalink.

2 Responses to Upgrading Git on MacOS X Lion

  1. Mihai says:

    I would highly recommend using Homebrew then it’s very easy to stay up to date with git:

    brew update; brew upgrade git

Leave a Reply

Your email address will not be published.