From 6e9b9641255b6c00c73679bfe9abd94575a63c52 Mon Sep 17 00:00:00 2001 From: gtnbssn Date: Tue, 27 Jun 2023 10:28:15 +0800 Subject: [PATCH 1/2] Explain how to undo brew edit Add a line explaining how brew update-reset can be used to undo changes users might have made with brew edit. --- docs/FAQ.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index 143b4fecb7..958477eec0 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -144,6 +144,8 @@ Yes! It’s easy! Just `brew edit `. You don’t have to submit modific Note that if you are editing a core formula or cask you must set `HOMEBREW_NO_INSTALL_FROM_API=1` before using `brew install` or `brew update` otherwise they will ignore your local changes and default to the API. +To undo your changes, run `brew update-reset`. It will revert to the upstream state on all Homebrew's repositories. + ## Can I make new formulae? Yes! It’s easy! Just `brew create URL`. Homebrew will then open the formula in `EDITOR` so you can edit it, but it probably already installs; try it: `brew install `. If you encounter any issues, run the command with the `--debug` switch like so: `brew install --debug `, which drops you into a debugging shell. From 16234637cae6dc19088151cd78247422753268d9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 27 Jun 2023 09:55:52 +0100 Subject: [PATCH 2/2] docs/FAQ: tweak wording. --- docs/FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index 958477eec0..d9b34c01fc 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -144,7 +144,7 @@ Yes! It’s easy! Just `brew edit `. You don’t have to submit modific Note that if you are editing a core formula or cask you must set `HOMEBREW_NO_INSTALL_FROM_API=1` before using `brew install` or `brew update` otherwise they will ignore your local changes and default to the API. -To undo your changes, run `brew update-reset`. It will revert to the upstream state on all Homebrew's repositories. +To undo all changes you have made to any of Homebrew's repositories, run `brew update-reset`. It will revert to the upstream state on all Homebrew's repositories. ## Can I make new formulae?