2013-02-23 121 views
14

在設置我的Mac OS X 10.8 Mountain Lion環境(per these instructions)時,在安裝它並在shell中運行brew doctor後,我遇到了Homebrew的問題。如何在Mac OS X 10.8(山獅)中更改Homebrew的git origin遠程位置?

Warning: Suspicious git origin remote found. 

    With a non-standard origin, Homebrew won't pull updates from 
    the main repository. The current git origin is: 

    Unless you have compelling reasons, consider setting the 
    origin remote to point at the main repository, located at: 
    https://github.com/mxcl/homebrew.git 

如何更改git origin遠程位置?

回答

17

感謝this post,我發現了我的問題。

安裝Homebrew時,它似乎並沒有拉最新版本。安裝後,運行brew update。 Homebrew最近在更新版本中修復了「Origin issue」問題,這反映在更新安裝時。

+3

+1!對此解決方案的一個小評論: 今天安裝自制程序後,我得到了同樣的警告。然而,運行brew更新告訴我,自制軟件是最新的。在使用brew更新並刪除警告之前,我必須重新啓動機器(關閉終端是不夠的)。 – Dyrborg 2013-12-14 23:27:20

+1

'brew update'對我造成了問題,但重新啓動終端解決了它。 – Grault 2013-12-17 00:06:39

0

我剛升級我的iMac到10.9.1,然後做了brew update。之後brew doctor給了我'非標準來源'的警告。 @ tom-geoco提到的這篇文章沒有真正說出錯的地方,也沒有解釋如何手動更改「origin remote」設置,但是,根據上面的@ jesdisciple的評論,我剛剛退出了Terminal,再次運行並嘗試brew doctor並且問題消失了。 brew --config現在報告ORIGIN: https://github.com/Homebrew/homebrew.git這是正確的。幽靈般的呃?

0

評論:(我沒有足夠的信譽發表評論,所以請添加這個和刪除)

  1. 釀造更新
  2. 釀造醫生 - >可疑起源錯誤
  3. 重啓終端
  4. 釀造醫生 - >可疑來源錯誤
  5. 沖泡更新
  6. 重啓終端
  7. 釀造醫生 - >一切OK。

這就是我的。我希望這可以幫助別人。注意,你必須運行沖泡更新兩次擺脫它。