今天我通过自制软件(brew install git
)安装了git。它下载了git 2.1.2版。
正在下载https://downloads.sf.net/project/machomebrew/Bottles/git-2.1.2.m
然而,当我运行heroku apps
时,我得到Your version of git is 2.1.2. Which has serious security vulnerabilities.
我认为自制软件会安装最新的修补版本来解决最近的git安全漏洞(https://blog.heroku.com/archives/2014/12/24/update_your_git_clients_on_windows_and_os_x)。
此外,当我运行brew update git
时,我得到Error: git-2.1.2 already installed
有什么想法?
答案 0 :(得分:4)
您需要运行brew update
以确保您的Homebrew安装是最新的。这更新了brew本身和用于安装软件的配方。