When I ran:
brew update
I got a message saying it initialized an empty repository in /usr/local/.git/
, then I got this error:
The first step is to run brew update . It updates Homebrew code and the taps (a tap is a repository of programs managed by Homebrew). Homebrew Cask provides the sub-command brew cask update but it is just an alias of brew update . You can use any of them; brew update is preferred because it is shorter.
From 20 minutes to an hour. The devs are aware.
brew update and upgradebrew update updates the above downloaded git repository with the latest code from GitHub. brew upgrade updates the actual packages to match the versions in the updated local git repository.
cd /usr/local
git status
git status
til it's cleanbrew update
As of 2021 you can simply use brew update
which updates homebrew itself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With