エラーは次のように報告されます
fatal: not in a git directory
Error: Command failed with exit 128: git
修復コードを実行する
次のコードを順番に実行すると、ダウンロードされるファイルが大きく、外国人の Web サイトにあるため、速度が遅くなります。
git -C "/opt/homebrew" remote set-url origin https://github.com/Homebrew/brew
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-cask"
brew tap homebrew/cask
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core