简体   繁体   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)?

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) 评论:(我没有足够的声誉发表评论,所以请添加此内容并删除此内容)

  1. brew update brew更新
  2. brew doctor -> Suspicious origin error brew doctor - >可疑来源错误
  3. restart terminal 重启终端
  4. brew doctor -> Suspicious origin error brew doctor - >可疑来源错误
  5. brew update brew更新
  6. restart terminal 重启终端
  7. brew doctor -> All ok. brew医生 - >一切都好。

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.

相关问题 Mac OS X 10.8 Mountain Lion的内核调试工具包 - Kernel Debug Kit for Mac OS X 10.8 Mountain Lion 在Mac OS X 10.8 Mountain Lion上未调用该方法 - Method does not invoked on Mac OS X 10.8 Mountain Lion Mountain Lion中的Git安装问题(OS X 10.8) - Git installation issue in Mountain Lion (OS X 10.8) 为什么OCaml二进制文件在Mac OS X 10.8(Mountain Lion)上崩溃? - Why do OCaml binaries crash on Mac OS X 10.8 (Mountain Lion)? 如何为Mac OS X 10.8 Mountain Lion设置Java JDK环境变量 - How to Set Java JDK Environment Variable for Mac OS X 10.8 Mountain Lion 如何在 Mac Mountain Lion OS X v10.8 上使用 pip 安装 Scipy - How to install Scipy with pip on Mac Mountain Lion OS X v10.8 如何在Mac OS X 10.8上的野生动物园中启用32位Java [Mountain Lion] - How to enable 32 bit Java in safari on Mac OS X 10.8 [Mountain Lion] 如何卸载Xcode 4.4命令行工具(Mac OS X 10.8 Mountain Lion)? - How to uninstall Xcode 4.4 command line tools (Mac OS X 10.8 Mountain Lion)? 如何在Mac OS X 10.8 Mountain Lion的非视网膜显示器上模拟视网膜显示器(HiDPI模式)? - How to simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display? 如何在OS X 10.8(Mountain Lion)中运行Xcode 4.3或Xcode 3 - How to run Xcode 4.3 or Xcode 3 in OS X 10.8 (Mountain Lion)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM