Homebrew 的 brew doctor 命令失败信息

9

我正在查看我的homebrew医生消息,无论我做什么,似乎都无法删除这条消息:

警告:您在Homebrew核心中有未提交的修改。

除非您知道自己在做什么,否则应该运行: cd /usr/local && git reset --hard

有人知道如何摆脱这个问题吗?

从git状态/usr/local

#   Library/Aliases/dwarffortress
#   Library/Aliases/ultima4
#   Library/Aliases/ultima7
#   Library/Contributions/examples/
#   Library/Formula/abfind.rb
#   Library/Formula/abuse.rb
#   Library/Formula/akonadi.rb
#   Library/Formula/angband.rb
#   Library/Formula/apc.rb
#   Library/Formula/aqua-less.rb
#   Library/Formula/argp-standalone.rb
#   Library/Formula/attica.rb
#   Library/Formula/bashreduce.rb
#   Library/Formula/c10t.rb
#   Library/Formula/chocolate-doom.rb
#   Library/Formula/cmigemo.rb
#   Library/Formula/coffee-script.rb
#   Library/Formula/csstidy.rb
#   Library/Formula/dosbox.rb
#   Library/Formula/dotless.rb
#   Library/Formula/dwarf-fortress.rb
#   Library/Formula/exult.rb
#   Library/Formula/flip.rb
#   Library/Formula/frobtads.rb
#   Library/Formula/frotz.rb
#   Library/Formula/gearman-php.rb
#   Library/Formula/gnu-chess.rb
#   Library/Formula/gnu-go.rb
#   Library/Formula/growlme.rb
#   Library/Formula/imagick.rb
#   Library/Formula/inform6.rb
#   Library/Formula/jnethack.rb
#   Library/Formula/jwhois.rb
#   Library/Formula/kde-phonon.rb
#   Library/Formula/kdebase-runtime.rb
#   Library/Formula/kdelibs.rb
#   Library/Formula/kdepimlibs.rb
#   Library/Formula/libgdiplus.rb
#   Library/Formula/libiconv.rb
#   Library/Formula/libsgml.rb
#   Library/Formula/maatkit.rb
#   Library/Formula/mcrypt-php.rb
#   Library/Formula/mednafen.rb
#   Library/Formula/memcache-php.rb
#   Library/Formula/memcached-php.rb
#   Library/Formula/memcachedb.rb
#   Library/Formula/midgard2-php.rb
#   Library/Formula/mongo-php.rb
#   Library/Formula/n2n.rb
#   Library/Formula/nazghul.rb
#   Library/Formula/nethack.rb
#   Library/Formula/netris.rb
#   Library/Formula/ninja.rb
#   Library/Formula/open-tyrian.rb
#   Library/Formula/orderly.rb
#   Library/Formula/oxygen-icons.rb
#   Library/Formula/parsley.rb
#   Library/Formula/pbrt.rb
#   Library/Formula/pcntl-php.rb
#   Library/Formula/phpmyadmin.rb
#   Library/Formula/pioneers.rb
#   Library/Formula/platypus.rb
#   Library/Formula/pspell-php.rb
#   Library/Formula/qimageblitz.rb
#   Library/Formula/robotfindskitten.rb
#   Library/Formula/shared-desktop-ontologies.rb
#   Library/Formula/shen.rb
#   Library/Formula/slashem.rb
#   Library/Formula/solr-php.rb
#   Library/Formula/soprano.rb
#   Library/Formula/sparse.rb
#   Library/Formula/spim.rb
#   Library/Formula/stone-soup.rb
#   Library/Formula/strigi.rb
#   Library/Formula/uggconv.rb
#   Library/Formula/unnethack.rb
#   Library/Formula/voldemort.rb
#   Library/Formula/woof.rb
#   Library/Formula/xboard.rb
#   Library/Formula/xcache.rb
#   Library/Formula/xdebug.rb
#   Library/Formula/xmoto.rb
#   Library/Formula/xu4.rb
#   Library/Homebrew/test/tests

它难道没有告诉你如何摆脱它吗?你试过了吗? - Andrew Marshall
这与您之前的问题相同;在我看来,不应该再次提出。 - Dave Newton
可能是[OSX Lion Homebrew“brew install mysql -v”问题]的重复。 (http://stackoverflow.com/questions/10238393/osx-lion-homebrew-brew-install-mysql-v-problems) - Dave Newton
@AndrewMarshall 是的,我运行了这个命令。但是没有成功。这与上一个问题不同,因为它只涉及Homebrew。 - Chris Hough
@AndrewMarshall 真糟糕,我刚在那里发布了一个主题 https://github.com/mxcl/homebrew/issues/11761。一旦我有解决方案,我会及时更新的。 - Chris Hough
显示剩余4条评论
1个回答

20

在向homebrew的问题日志https://github.com/mxcl/homebrew/issues/11761发布后,我通过运行git clean -df并在完成后运行brew doctor来清除了错误。完成后您应该会看到:

Your system is raring to brew.

6
为了明确因为我错过了:在/usr/local目录中运行'git clean -df'命令。 - Tony R
3
请确保进行干运行以双重检查要清理的内容:git clean -dfn。友情提示,无法撤消 git clean 的操作。 - Mike Rapadas

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接