[英]How do I change the git origin remote location of Homebrew in Mac OS X 10.8 (mountain lion)?
In setting up my Mac OS X 10.8 Mountain Lion environment ( per these instructions ), I am running into an issue with Homebrew after installing it and running brew doctor
in the shell. 在设置我的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
How can I change the git origin remote location? 如何更改git origin远程位置?
Thanks to this post , I discovered my issue. 感谢这篇文章 ,我发现了我的问题。
When installing Homebrew, it doesn't seem to pull the latest version. 安装Homebrew时,它似乎没有拉出最新版本。 After installation, run brew update
. 安装完成后,运行brew update
。 Homebrew more recently fixed the "Origin issue" in a later release which is reflected upon updating the installation. Homebrew最近在更新的版本中修复了“Origin问题”,这在更新安装时得到了反映。
I just upgraded my iMac to 10.9.1 and then did a brew update
. 我刚刚将iMac升级到10.9.1,然后进行了brew update
。 After that brew doctor
gave me the 'non-standard origin' warning. 那个brew doctor
给了我“非标准起源”的警告。 The post referred to by @tom-geoco didn't really say what was wrong or explain how to manually change the 'origin remote' setting, but, as per @jesdisciple's comment above I just quit the Terminal, run it up again and tried brew doctor
and the problem vanished. @ tom-geoco提到的帖子并没有真正说出错误或解释如何手动更改'origin remote'设置,但是,根据@jesdisciple上面的评论我只是退出终端,再次运行并尝试brew doctor
和问题消失了。 brew --config
now reports ORIGIN: https://github.com/Homebrew/homebrew.git
which is correct. brew --config
现在报告ORIGIN: https://github.com/Homebrew/homebrew.git
这是正确的。 Spooky eh? 诡异啊?
Comment: (I do not have enough reputation to comment, so please add this and delete this) 评论:(我没有足够的声誉发表评论,所以请添加此内容并删除此内容)
This is how it was for me. 这就是我的样子。 I hope this helps someone else out there. 我希望这可以帮助其他人。 Notice that you must run brew update twice to get rid of it. 请注意,您必须运行brew update 两次才能删除它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.