Brew更新失败

chi*_*ikh 2 homebrew

输出:

? brew update
error: Your local changes to the following files would be overwritten by merge:
    lapack.rb
    whois.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failed to update tap: homebrew/dupes
Already up-to-date.
Run Code Online (Sandbox Code Playgroud)

我在Stack Overflow和Brew问题页面上尝试了很多东西(https://github.com/mxcl/homebrew/wiki/Common-Issues#brew-update-complains-about-untracked-working-tree-files)但仍然没有运气.它看起来有点不同,因为它抱怨自制/欺骗.

Zat*_*ion 5

试试这个:

$ cd $(brew --prefix)/Library/Taps/homebrew-dupes/
$ git checkout .
$ git pull --force
$ brew update
Run Code Online (Sandbox Code Playgroud)