[英]Cannot install via Homebrew nor Git installer
我在Mac 10.9.4上。
我有Git版本1.8.5.2。
我想升級到Git的最新穩定版本(2.0.1或2.1?)
我不知道Git最初是如何在我的電腦上安裝的。
當我嘗試使用Homebrew時,我收到以下消息:“錯誤:git未安裝”。
當試圖從官方Git安裝程序運行uninstall.sh
(顯然我必須卸載)時,我收到以下消息:“Git似乎沒有通過此安裝程序安裝。正在中止”
你有預裝osx git的git。 請注意,當您運行'git --version'時,您會得到:'git version 1.9.3(Apple Git-50)'。 你可以運行git安裝程序......
brew install git
$ git --version
git version 1.7.12.4 (Apple Git-37)
$ which git
/usr/bin/git
// doh! osx's pre-installed git trumps the brew one, so:
$ sudo mv /usr/bin/git /usr/bin/git-apple
--RUN THE GIT INSTALLER
$ which git
/usr/local/bin/git
$ git --version
git version 1.8.2
// ok cool.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.