fatal: couldn’t find remote ref refs/heads/master
This worked for me: brew tap –repair brew cleanup brew update-reset After that I was able to brew update without any issues. Possible culprit: dart-lang/dart: changed default branch name from master to main!