brew update

Fetch the newest version of Homebrew and all formulae from GitHub using git and perform any necessary migrations. To upgrade all installed formulae, use brew upgrade. More information: https://docs.brew.sh/Manpage#update-options.

brew update