1
error: Your local changes to the following files would be overwritten by merge:
    Library/Contributions/brew_bash_completion.sh
    Library/Contributions/brew_fish_completion.fish
    Library/Contributions/brew_zsh_completion.zsh
    Library/Contributions/manpages/brew.1.md
        ...

    Library/Formula/dmtx-utils.rb
    Library/Formula/docbook-xsl.rb
    Library/Formula/dromeaudio.rb
    Library/Formula/dub.rb
    Library/Formula/dvorak7min.rb
    Library/Formula/dyld-headers.rb
    Library/Formula/dylibbundler.rb
    Library/For
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
4

2 回答 2

2

我见过几次,不知道是什么原因造成的;但是,如果您确定没有对要保存的文件进行任何修改,则可以进入 /usr/local (或保留 Homebrew 安装的任何位置)并键入git reset --hard HEAD. 然后再次尝试更新。

于 2013-07-11T18:07:55.320 回答
0

删除文件并重新安装 HOMEBREW 解决了这个问题。

于 2013-07-12T13:35:57.773 回答