bash-3.2# git --version git version 1.8.3.4 (Apple Git-47) bash-3.2# which git /usr/bin/git
Terminal中鍵入:export PATH=/usr/local/bin:$PATH
而後鍵入:which git
便可看到已更改成最新版本:git
bash-3.2$ git --version git version 1.8.4 bash-3.2$ which git /usr/local/bin/git