How to install git in osx mountain lion

How to install git in osx mountain lion

In osx mountain lion, when you install xcode, the commandline version of git is not automatically installed.

to install git, follow these instructions:

1) make sure you have installed xcode from the app store
2) open xcode
3) goto xcode > preferences
4) goto downloads
5) tick ‘commandline tools’

install git on osx mountain lion commandline

xcode will download and configure the commandline tools for you and you will now have git available from the command line

Tags for How to install git in osx mountain lion