2012年7月27日 星期五

Lion 系統下使用 Xcode 安裝 Git

Google 提供 Git 的安裝程式(http://code.google.com/p/git-osx-installer/),安裝的位置是在 /usr/local/bin/git 檔案夾之下,因此可能無法直接從終端機取用。

要將 Git 安裝在 Lion 系統的 /usr/bin ,可以透過 AppStore 下載免費的 Xcode ,然後從 Preference > Download 面板下選 Components 標籤,安裝“Command Line Tools”,就會下載 Git 並安裝於 /usr/bin 。