设置时,我正在尝试更新我的啤酒
我收到此错误:
error: Your local changes to the following files would be overwritten by merge:
Library/Formula/imagemagick.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
或者
error: The requested URL returned error: 403 while accessing https://github.com/mxcl/homebrew/info/refs
fatal: HTTP request failed
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
Git有什么问题?如果这种方式不起作用,如何更新brew?
最佳答案
这是由于update
代码中的一个旧错误导致的,该错误已被修复很久了。但是,该错误的性质要求您执行以下操作:
cd $(brew --repository)
git reset --hard FETCH_HEAD
如果
brew doctor
仍然提示未提交的修改,请运行以下命令:cd $(brew --repository)
git clean -fd
关于git - Lion OS-Brew更新返回 "Failure while executing...",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16018196/