まずはMacPortsインストール
MacPorts
http://www.macports.org
右上に「download」のリンクがあるので、その先の本文の中にMountain LionなどのOS名の表記があるのでそれをクリックしてダウンロードしてインストール。
次にGitインストール
次はターミナルを起動してMacPortsでGitをインストール
sudo port install git-core
以下のようなエラーが出る場合、
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
---> Computing dependencies for git-coreError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Xcodeのコマンドラインツールが入ってないということ。
Xcodeを起動してFile – Preferencesから、
Command LineツールをインストールすればOK
念のためにターミナルを再起動してGitインストール完了!
coda2を設定
Coda2の「環境設定」の「ファイル」タブの下にある「Gitパス」にGitのパスを追加
/opt/local/bin/git