Merge pull request #15593 from gtnbssn/patch-1

Explain how to undo brew edit
This commit is contained in:
Mike McQuaid 2023-06-27 10:10:13 +01:00 committed by GitHub
commit 3a813c30f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,6 +144,8 @@ Yes! Its easy! Just `brew edit <formula>`. You dont 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 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?
Yes! Its 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 <formula>`. If you encounter any issues, run the command with the `--debug` switch like so: `brew install --debug <formula>`, which drops you into a debugging shell.