Installing Git separately from Github for Mac

I've installed Github for Mac.

I've realised that I need to get to the command line to do some stuff.

There is an option in Guthub for Mac to install a command line. All this seems to do is create an alias called Github in /usr/local/bin that points back to the Github for Mac application.

Double clicking it opens a terminal window and then Github for Mac.

Any ideas how to get Git to work in a command line?

Its a relatively clean version of Lion OS X


Solution 1:

Git is included in the command line tools package provided by Apple that can be downloaded at https://developer.apple.com/downloads/index.action

It is also included with Xcode, which can be downloaded from either the Mac App Store or from the above link.

Assuming you'd rather not install either of these you can also obtain Git by downloading it from http://git-scm.com/downloads

Hope that helps.

Solution 2:

https://help.github.com/articles/set-up-git#platform-mac

Should walk you though installing it.

Solution 3:

I highly recommend installing Homebrew, which does a great job of keeping up with the latest git releases.

Once Homebrew is installed, it's as simple as:

brew install git