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

75 views Asked by At

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?

1

There are 1 answers

0
Ortomala Lokni On

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