Yosemite brew update

研究两天终于在stackoverflow上找到答案了。

Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

更新brew 报这个错误的时候,

You need to do the following:

cd $(brew --prefix)

rm Library/Formula/argp-standalone.rb

rm Library/Formula/cocot.rb

And then do the

git fetch origin

git reset --hard origin/master

brew update

---------或者---------

cd `brew --prefix`

$ git remote add origin https://github.com/Homebrew/homebrew.git

$ git fetch origin

$ git reset --hard origin/master

$ brew update

Already up-to-date.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容