Macos 如何在Mac OS X 10.8(mountain lion)中更改自制软件的git源远程位置?

Macos 如何在Mac OS X 10.8(mountain lion)中更改自制软件的git源远程位置?,macos,terminal,osx-mountain-lion,homebrew,Macos,Terminal,Osx Mountain Lion,Homebrew,在设置Mac OS X 10.8 Mountain Lion environment()时,在安装并在shell中运行brew doctor后,我遇到了自制软件的问题 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:

在设置Mac OS X 10.8 Mountain Lion environment()时,在安装并在shell中运行
brew doctor
后,我遇到了自制软件的问题

    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源远程位置?

多亏了,我发现了我的问题


在安装自制软件时,它似乎没有获得最新版本。安装后,运行
brew update
。最近,自制软件修复了更新安装时反映的更高版本中的“原始版本问题”。

我刚刚将iMac升级到10.9.1,然后进行了
brew更新。之后,
brew doctor
给了我“非标准原产地”警告。@tom geoco提到的帖子没有真正说明问题所在,也没有解释如何手动更改“origin remote”设置,但根据上面@Jess徒弟的评论,我只是退出了终端,再次运行,并尝试了
brew doctor
,问题就消失了<代码>brew--config
现在报告
来源:https://github.com/Homebrew/homebrew.git
这是正确的。怪异的eh?

评论:(我没有足够的声誉来评论,所以请添加此内容并删除此内容)

  • brew更新
  • brew医生->可疑来源错误
  • 重启终端
  • brew医生->可疑来源错误
  • brew更新
  • 重启终端
  • brew医生->一切正常

  • 对我来说就是这样。我希望这能帮助其他人。请注意,必须运行brew update两次,才能将其删除。

    +1!对此解决方案的一点小小评论:在今天安装homebrew之后,我收到了同样的警告。不过,运行brew update告诉我,自制是最新的。我必须重新启动计算机才能使用brew update并删除警告(关闭终端是不够的)。
    brew update
    为我造成了问题,但重新启动终端解决了问题。