我正在使用macbook,并且在我的机器上安装了ruby。我想安装一个ruby gem,但想先更新HomeBrew。我在主文件夹中运行'brew update‘,得到以下错误:
error: The following untracked working tree files would be overwritten by merge:
Library/Formula/vcprompt.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
我尝试进入库/公式文件夹,但它在我的机器上不存在。我不确定从这里该做什么。
发布于 2013-03-30 00:21:39
cd /usr/local && git reset --hard FETCH_HEAD
或者如果它失败了
cd /usr/local && sudo git reset --hard FETCH_HEAD
https://stackoverflow.com/questions/15693078
复制相似问题