尝试升级到最新版本的Git。因为我收到消息“你的git版本是1.8.5.2。哪个有严重的安全漏洞”我已经通过自制软件升级但它仍然显示旧版本而不是新版本2.4.1。执行以下命令(使用osx yosemite版本10.10.1)
brew update
Updated Homebrew from 6cb91e45 to bc541b9d.
==> New Formulae
apache-drill gumbo-parser mlogger
blockhash hebcal moe
==>删除公式 datamash git-latexdiff shell.fm texwrapper dupx lilypond sslscan
brew install git
==> Downloading https://homebrew.bintray.com/bottles/git-2.4.1.yosemite.bottle.t
######################################################################## 100.0%
==> Pouring git-2.4.1.yosemite.bottle.tar.gz
==> Caveats
The OS X keychain credential helper has been installed to:
/usr/local/bin/git-credential-osxkeychain
The "contrib" directory has been installed to:
/usr/local/share/git-core/contrib
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
/usr/local/Cellar/git/2.4.1: 1370 files, 31M
但是当我做git --version时,它给了我git版本1.8.5.2(Apple Git-48)。然而brew升级git给了我
错误:已经安装了git 2.4.1
git 给我的命令 的/ usr / local / bin中/ GIT中
如何访问最新版本的Git?
答案 0 :(得分:0)
现在需要重新启动才能获得2.4.1!