2

输出:

○ 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.

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

4

1 回答 1

5

尝试这个:

$ cd $(brew --prefix)/Library/Taps/homebrew-dupes/
$ git checkout .
$ git pull --force
$ brew update
于 2013-09-09T16:58:11.617 回答