2017-04-05 55 views
0

我删除了一些.rb文件(cassandra.rb,cassandra @ 2.1.rb和[email protected]来自mac系统的/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/文件夹。我想要回这些.rb文件。
我认为brew upgrade会让我回到那些删除的.rb文件回来,但他们仍然失踪。这些.rb文件对我来说安装软件包很重要。
brew install cassandra
如何取回自制到以前的状态?

Updating Homebrew... 
Error: No available formula with the name "cassandra" 
==> Searching for a previously deleted formula... 
cassandra was deleted from homebrew/core in commit d20fe73: 
    cassandra: update 3.10_1 bottle. 

To show the formula before removal run: 
    git -C "$(brew --repo homebrew/core)" show d20fe73^:Formula/cassandra.rb 

If you still use this formula consider creating your own tap: 
    http://docs.brew.sh/How-to-Create-and-Maintain-a-Tap.html 

请我需要的解决方案“如何找回这些.RB文件?”“任何其他替代方式安装cassandra”

回答

0

试试这个命令带回所有被删除的文件。
注:该命令将恢复在$(brew --repo homebrew/core)

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

家酿使用Git的内部都在改变,所以使用Git命令来修复一些问题。

相关问题