[英]How do I change the git origin remote location of Homebrew in Mac OS X 10.8 (mountain lion)?
在設置我的Mac OS X 10.8 Mountain Lion環境時( 根據這些說明 ),我在安裝它並在shell中運行brew doctor
后遇到Homebrew的問題。
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遠程位置?
感謝這篇文章 ,我發現了我的問題。
安裝Homebrew時,它似乎沒有拉出最新版本。 安裝完成后,運行brew update
。 Homebrew最近在更新的版本中修復了“Origin問題”,這在更新安裝時得到了反映。
我剛剛將iMac升級到10.9.1,然后進行了brew update
。 那個brew doctor
給了我“非標准起源”的警告。 @ tom-geoco提到的帖子並沒有真正說出錯誤或解釋如何手動更改'origin remote'設置,但是,根據@jesdisciple上面的評論我只是退出終端,再次運行並嘗試brew doctor
和問題消失了。 brew --config
現在報告ORIGIN: https://github.com/Homebrew/homebrew.git
這是正確的。 詭異啊?
評論:(我沒有足夠的聲譽發表評論,所以請添加此內容並刪除此內容)
這就是我的樣子。 我希望這可以幫助其他人。 請注意,您必須運行brew update 兩次才能刪除它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.