MAC系统homebrew执行brew update报错error: homebrew-core is a shallow clone.
解决办法:
1.
cd /usr/local/Homebrew/Library/Taps/homebrew
2.
rm -rf homebrew-core
然后更新:
3.
brew upgrade
升级指令:
brew update # 更新 Homebrew的信息
brew outdated # 看一下哪些软件可以升级
brew upgrade <xxx> # 如果不是所有的都要升级,那就这样升级指定的`
brew upgrade # 全部升级
网友评论