Gitをインストールする

参考にさせていただきました

http://d.hatena.ne.jp/STAR_ZERO/20110919/1316403151
id:STAR_ZERO さんありがとうございました。

brew edit git

してから install したら git-manpages-1.7.6.1.tar.bz2 が無いよでエラー。

$ brew install git
==> Downloading https://github.com/git/git/tarball/v1.7.6.1
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.6.1 install
==> Downloading http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-manpages-1.7.6.1.tar.bz2

curl: (22) The requested URL returned error: 404
Error: Failure while executing: /usr/bin/curl -f#LA Homebrew\ 0.8\ (Ruby\ 1.8.7-249;\ Mac\ OS\ X\ 10.7.2) http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-manpages-1.7.6.1.tar.bz2 -o /Users/ほげ/Library/Caches/Homebrew/git-manpages-1.7.6.1.tar.bz2

元情報の alternative source for installing git. brew install git; kernel.org Down for maintenance を見たら別のミラーサイト(て言うのかな?)指定しろって書いてあったので、もう一回 git edit で以下のように編集した。

url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-manpages-1.7.6.1.tar.bz2'

を下記に変更した。

http://distfiles.macports.org/git-core/git-manpages-1.7.6.1.tar.bz2'