簡體   English   中英

如何在Mac OS X 10.8(山獅)中更改Homebrew的git origin遠程位置?

[英]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這是正確的。 詭異啊?

評論:(我沒有足夠的聲譽發表評論,所以請添加此內容並刪除此內容)

  1. brew更新
  2. brew doctor - >可疑來源錯誤
  3. 重啟終端
  4. brew doctor - >可疑來源錯誤
  5. brew更新
  6. 重啟終端
  7. brew醫生 - >一切都好。

這就是我的樣子。 我希望這可以幫助其他人。 請注意,您必須運行brew update 兩次才能刪除它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM