为什么我使用 brew install git 在 OSX 10.11.1 上安装后以 git 2.6.4 结尾?
Why I end with git 2.6.4 after install it on OSX 10.11.1 using brew install git?
我已经在 /usr/bin/git 安装了 Git,可能是因为我安装了 Xcode。现在我做了 brew install git
并以相同的 git 版本 2.6.4 安装在 /usr/local/bin/git
中结束(当然符号链接到 /usr/local/Cellar/git/2.6.4/bin/git
)。我的问题是为什么当我应该获得更新的版本时我以 Homebrew 的 2.6.4 git 版本结束?
$ git --version
git version 2.6.4
$ which git
/usr/local/bin/git
$brew info git
git: stable 2.8.1 (bottled), HEAD
Distributed revision control system
https://git-scm.com
/usr/local/Cellar/git/2.6.4 (1,402 files, 30.1M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/git.rb
==> Dependencies
Build: xz ✘
Optional: pcre ✘, gettext ✘
我不知道是什么导致了问题 - 可能是通信故障或其他原因,但是...您可以尝试更强制的重新安装,如下所示:
brew rm git --force
brew install git
我已经在 /usr/bin/git 安装了 Git,可能是因为我安装了 Xcode。现在我做了 brew install git
并以相同的 git 版本 2.6.4 安装在 /usr/local/bin/git
中结束(当然符号链接到 /usr/local/Cellar/git/2.6.4/bin/git
)。我的问题是为什么当我应该获得更新的版本时我以 Homebrew 的 2.6.4 git 版本结束?
$ git --version
git version 2.6.4
$ which git
/usr/local/bin/git
$brew info git
git: stable 2.8.1 (bottled), HEAD
Distributed revision control system
https://git-scm.com
/usr/local/Cellar/git/2.6.4 (1,402 files, 30.1M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/git.rb
==> Dependencies
Build: xz ✘
Optional: pcre ✘, gettext ✘
我不知道是什么导致了问题 - 可能是通信故障或其他原因,但是...您可以尝试更强制的重新安装,如下所示:
brew rm git --force
brew install git