首页 > homebrew无法更新,提示有未提交的修改

homebrew无法更新,提示有未提交的修改

运行 brew update 时,出现下列提示

Warning: You have uncommitted modifications to Homebrew's core.

Unless you know what you are doing, you should run: cd /usr/local && git reset --hard

运行了 cd /usr/local && git reset --hard 也没有效果
肿么回事呢?现在更新不了了


/usr/local 目录下执行 git clean -df 应该就能恢复了。

参见官方 issue 内容 https://github.com/mxcl/homebrew/issu...


重新安装 homebrew

【热门文章】
【热门文章】