Command to install git for Mac OS X using Macports:

sudo port install git-core