試圖升級到最新版本的Git。因爲我得到的消息是「你的git版本是1.8.5.2,它有嚴重的安全漏洞」我已經通過自制軟件升級了,但它仍然顯示舊版本不是新版本2.4.1。然下面的命令(使用OSX約塞米蒂版本10.10.1)升級到最新版本的Git
釀造更新
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安裝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的2.4.1已經安裝
命令它的git給我 在/ usr/local/bin目錄/混帳
我怎麼能訪問最新版本的Git?
如果'哪個git'顯示git指向自制程序安裝站點,在我看來它應該是蘋果安裝的一個。你有沒有嘗試過移動蘋果的git安裝? 'sudo mv/usr/bin/git/usr/bin/git-apple' –
嗨對不起 - 只需要重新啓動即可獲取2.4.1! – Neil