homebrewをインストール
参考サイト:
http://tools4hack.santalab.me/howto-mountainlion-install-homebrew.html
- Javaのインストール
- Xcode Command Line Toolsをインストール
- homebrewをインストール
コマンドラインで以下を実行。
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
gitをインストール
$ brew install git
※補足
ホームディレクトリに.bash_profile
を作成し以下の記述をする必要があると紹介するサイト(http://www.e2esound.com/wp/2013/07/03/git-kai_how_to_install_git_with_homebrew/)
もあったが、自分の場合は無くても大丈夫そうだった。
PATH=/usr/local/bin:$PATH
export PATH
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi