install Homebrew and git
########################################################################
# https://github.com/mxcl/homebrew/wiki/Installation
########################################################################
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
$ brew install git
==> Downloading http://git-core.googlecode.com/files/git-1.7.7.4.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.7.4 install
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.7.7.4.tar.gz
######################################################################## 100.0%
==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.7.7.4.tar.gz
######################################################################## 100.0%
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
Emacs support has been installed to:
/usr/local/share/doc/git-core/contrib/emacs
The rest of the "contrib" is installed to:
/usr/local/share/git/contrib
==> Summary
/usr/local/Cellar/git/1.7.7.4: 1103 files, 21M, built in 43 seconds
$ ln -s /usr/local/etc/bash_completion.d/git-completion.bash git-completion.bash