Install git for Mac

In my opinion, to use homebrew is easiest.
homebrew is like MacPorts. homebrew is required ruby and Mac OS X 10.5.

How to install homebrew

Please refer to here
just type following:

ruby -e "$(curl -fsSL"

Install git

brew doctor   # check brew
brew update   # this is not required
brew install git

Warning: If you use XCode5, please install Command Line Tool.
“XCode” -> “Preference” -> “Download” -> “Command Line Tool”


After success installing please type

git --version

You can see version number.