For The TL;DR version, you can download Git For OS X in its Google Code Repository.

When sharing my WordPress Developer Toolbox, I mentioned that GitBox is my Git client of choice. As with most software that offers a command line variant, I occasionally end up using a Terminal session to manage some of my Git repositories.

Depending on what other applications you have installed on your system, you may not actually have command line access to Git. If that’s the case and you’d rather not install the full Xcode development suite (because it does include the command line utility), there is an alternative.

Install Git on Mac OS X

1. Download Git OS X Installer

The Git OS X Installer is an open source project hosted on Google Code that makes it incredibly easy to install Git without interfering with any of your front end applications and without needing to install larger development tools.

All of the versions are accessible via the downloads page and all mention Snow Leopard, but are compatible with all Intel processors. Note that the latest version is at the top of the list.

The most recent version at the time of this post is 1.8.0 and fully works with Mountain Lion.

2. Install Git on Mac OS X

The Git OS X Installer is a typical OS X setup program, so simply walk through the steps that the installer provides.

Note that since the files are being installed in /usr/local you will need root access – that is, you’ll need to enter the administrator’s password during the setup procedure.

Once setup is completed, you should be good to go.

3. Test The Installation

Once the installation is complete, you’ll need to close all active Terminal sessions. Open a new session and issue the git command. Permitting all is well, you should see a screen similar to what’s above.

And that’s it. Easy enough, right?

Now you can continue to use whatever front end application you like while also being able to issue commands from the command line.


Join the conversation! 12 Comments

  1. Simple and to the point. Git installed in 2 minutes flat, thanks Tom!

  2. Git makes it difficult for OSX 10.6.8 users. Thanks for this guide and tim for the installer.

  3. Just tried the latest one

    git-1.9.2-intel-universal-snow-leopard.dmg 2014-04-23 10.7 MB

    on osx 10.6.8 intel

    But it just gives me segmentation fault.

  4. Then I tried an older one

    git- 19.1 MB

    and this seems to work on OSX10.6.8

  5. I tried to install git on my MAC OS Lion 10.7.5, but when I do the git command it says “command not found”. Someone knows what might be happening?

    • This means that it’s not part of your path — that is, the globally recognized set of tools that can be used anywhere in the command line.

      I’m not using Lion so I’m not positive this will work, but you may want to try creating a symbolic link from where Git is installed to the /usr/local/bin directory. Here’s what you’d need to enter in Terminal:

      $ sudo -s
      $ mkdir -p /usr/local/bin
      $ ln -s /usr/local/git/bin/git /usr/local/bin/git
      $ exit

      Then restart Terminal.

  6. thanks. works. fast…!!! how do i connect to bitbucket repository? any guide?

Leave a Reply

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