问题更新自制软件


0

试图更新自制软件,我得到这个:

$ brew update

error: Your local changes to the following files would be overwritten by merge:
    .gitignore
    Library/Contributions/brew_bash_completion.sh
    Library/Contributions/brew_fish_completion.fish
    Library/Contributions/brew_zsh_completion.zsh
    Library/Contributions/manpages/brew.1.md
    Library/ENV/4.3/cc
    Library/ENV/4.3/make
    Library/ENV/4.3/xcrun
    Library/ENV/libsuperenv.rb
Please, commit your changes or stash them before you can merge.
error: The following untracked working tree files would be overwritten by merge:
    CONTRIBUTING.md
    Library/Aliases/ag
    Library/Aliases/heroku

......等......

任何方式只是清理它?看起来它是在引擎盖下使用git?

Answers:


1

这取决于您是否关心对这些文件的本地更改。您是自己更改了它们,还是运行了更改它们的程序或其他内容?

如果你根本不打算改变它们,那cd /usr/local就跑git reset --hard HEAD; 这会将它们全部重置为原始状态。然后尝试更新Homebrew。


我没有故意改变它们。我不知道这些文件甚至是什么!我想知道他们是否可以被之前中止的自制操作改变 - 听起来有道理吗?
彼得·霍尔

我绝对认为这是合情合理的,但我认为你应该在Homebrew GitHub页面上提出这个问题,看看他们是否清楚地知道这里发生了什么。
echristopherson 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.