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
答案 0 :(得分:2)
我已经看过几次了,不知道是什么原因造成的;但是如果您确定没有对要保存的文件进行任何修改,可以进入/ usr / local(或者保留Homebrew安装的任何地方)并键入git reset --hard HEAD
。然后再尝试更新。
答案 1 :(得分:0)
删除文件并重新安装HOMEBREW解决了这个问题。