Mac自带的旧版本Git:

    bash-3.2# git --version
    git version 1.8.3.4 (Apple Git-47)
    bash-3.2# which git
    /usr/bin/git

如何更改为新版本Git:

Terminal中键入:export PATH=/usr/local/bin:$PATH 然后键入:which git
即可看到已更改为最新版本:

    bash-3.2$ git --version
    git version 1.8.4
    bash-3.2$ which git
    /usr/local/bin/git

jkyin
286 声望13 粉丝

iOS developer.