How to get back Homebrew to previous state?

前端 未结 2 1422
我寻月下人不归
我寻月下人不归 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.

    0 讨论(0)
  • 2021-01-23 23:08

    Install directly from GitHub as mentioned here - How to restore brew formula after I rm it

    brew install https://github.com/Homebrew/homebrew-core/tree/master/Formula/cassandra.rb
    
    0 讨论(0)
提交回复
热议问题