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

Tom*_*oco 14 macos terminal homebrew osx-mountain-lion

在设置我的Mac OS X 10.8 Mountain Lion环境时(根据这些说明),我在安装它并brew doctor在shell中运行后遇到了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
Run Code Online (Sandbox Code Playgroud)

如何更改git origin远程位置?

Tom*_*oco 17

感谢这篇文章,我发现了我的问题.

安装Homebrew时,它似乎没有拉出最新版本.安装完毕后,运行brew update.Homebrew最近在更新的版本中修复了"Origin问题",这在更新安装时得到了反映.

  • +1!对此解决方案的一个小评论:今天安装自制软件后,我得到了同样的警告.然而,运行brew更新告诉我自制软件是最新的.我必须重新启动我的机器才能使用brew更新并删除警告(关闭终端是不够的). (3认同)