使用 HomeBrew 如果出現 “Error: homebrew-core is a shallow clone.” 錯誤。

1.png

可照著命令列的提示帶入。

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch –unshallow git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch –unshallow

2.png

即可修復該問題。

3.png