Open2

homebrewのエラー

cordeliacordelia

以下のエラーが出て先に進まなくなった。

fatal: couldn't find remote ref refs/heads/master
cordeliacordelia

状態を検査

brew doctor

すると以下のメッセージが表示された

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.


Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/bin/notary

softwareupdate --all --install --forceは取り返しつかなそうなので、こっちを試してみる

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

メッセージが以下だけになったので指示に従ってbrew cleanupを実行してみる

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/bin/notary