【问题标题】:Brew update failsBrew 更新失败
【发布时间】:2013-06-28 16:41:39
【问题描述】:

输出:

○ 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) 上尝试了很多东西,但仍然没有运气。它看起来像一个稍微不同的错误,因为它抱怨自制/欺骗。

【问题讨论】:

    标签: homebrew


    【解决方案1】:

    试试这个:

    $ cd $(brew --prefix)/Library/Taps/homebrew-dupes/
    $ git checkout .
    $ git pull --force
    $ brew update
    

    【讨论】:

      猜你喜欢
      • 2012-01-29
      • 1970-01-01
      • 1970-01-01
      • 2013-04-03
      • 2020-07-22
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      • 2016-07-31
      相关资源
      最近更新 更多