How to Upgrade Homebrew

homebrew

When macOS is upgraded to a major version (for example, from 13 to 14), there is a certain chance that homebrew will be incompatible (unavailable).

Correct way to upgrade homebrew:

Terminal window
cd "$(brew --repo)" && git fetch && git reset --hard origin/master

You will be happy with the software package later

Terminal window
brew update