How to get back Homebrew to previous state?

前端 未结 2 1423
我寻月下人不归
我寻月下人不归 2021-01-23 22:45

I deleted some of .rb files(cassandra.rb,cassandra@2.1.rb and cassandra@2.2.rb) from folder /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formul

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-23 22:56

    Try this command to bring back all of deleted files.
    Note: This command will revert all change in $(brew --repo homebrew/core)

    cd $(brew --repo homebrew/core) && git reset --hard origin/master
    

    Homebrew uses git internally, so use git commands to repair some problem.

提交回复
热议问题