NPK
NPK

Reputation: 11

I changed a file incorrectly in vi when trying to install ifuse on OSX and don't know how to get the original back

I'm very inexperienced, and was following directions here ---

Installing ifuse with Homebrew results in ERROR message

I believe I made some unintended changes when I was editing the file in

$ vi `brew formula ifuse`

without understanding what I was doing. When I went to install ifuse, it just give me an error. Is there any way to get back to the original file/undo my edits?

Upvotes: 1

Views: 50

Answers (1)

Ortomala Lokni
Ortomala Lokni

Reputation: 62663

Homebrew formulas are in a local git repository. You can restore the original formula by typing:

cd `brew --prefix`/Library/Taps/homebrew/homebrew-core/Formula
git checkout ifuse.rb

Upvotes: 0

Related Questions