当尝试在OSX上安装IFUSE时,我在VI中错误地更改了一个文件,并且不知道如何使原始返回

发布于 2025-01-24 08:56:22 字数 228 浏览 3 评论 0原文

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

情况下对文件进行编辑时进行了一些意外的更改

$ vi `brew formula ifuse`

我相信我相信我在不了解我所做的事情的 。当我去安装ifuse时,它只会给我一个错误。有什么办法可以返回原始文件/撤销我的编辑?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

这样的小城市 2025-01-31 08:56:22

自制公式位于当地的GIT存储库中。您可以通过键入来还原原始公式:

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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文