【发布时间】:2015-01-08 19:42:15
【问题描述】:
Heroku 工具带 似乎是最新的:
-bash> heroku --version
Your version of git is 2.1.0. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
heroku-toolbelt/3.22.1 (x86_64-darwin10.8.0) ruby/1.9.3
根据 homebrew,git 是当前的:
-bash> brew outdated git
-bash> which git
/usr/local/bin/git
-bash> git --version
git version 2.1.0
在撰写本文时,我意识到 the current source code release of Git is version 2.2.1 - 但这是非常前沿的,甚至是 the official Git website is shipping version 2.0.1 of Git for the Mac platform。
【问题讨论】:
-
我也在使用 Homebrew,但在运行
brew upgrade git时会得到Error: git-2.1.0 already installed。您是如何通过 Homebrew 一路上升到2.2.1的? -
我不是 Homebrew 专家,但你运行过
brew doctor || brew update吗? -
宾果游戏!
brew update成功了(接下来是brew upgrade git)。谢谢!