先安装了xcode,命令行下git --version,显示的是:git version 1.8.5.2 (Apple Git-48)
通过brew install git,安装的是2.1版本, brew安装的路径是: /usr/local/Cellar/git/2.1.0。
我想知道如何让命令下的git也是2.1版本,且以后通过brew update时也能自动更新。
通过brew install git,安装的是2.1版本, brew安装的路径是: /usr/local/Cellar/git/2.1.0。
我想知道如何让命令下的git也是2.1版本,且以后通过brew update时也能自动更新。