Error: homebrew-core is a shallow clone.【解决方法】

今天爱分享给大家带来Error: homebrew-core is a shallow clone.【解决方法】,希望能够帮助到大家。
解决方法
删除homebrew-core后更新即可


cd /usr/local/Homebrew/Library/Taps/homebrew
rm -rf homebrew-core
brew upgrade

问题解析
Mac更新完系统后使用homebrew就报错:


Error:
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This restriction has been made on GitHub's request because updating shallow 
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

使用brew upgrade后会重新更新homebrew-core

原文链接:https://blog.itblood.com/4866.html,转载请注明出处。
0
凤凰V15官中版[PC+安卓/5.11G/更新] [神作SLG/官中/动态]
凤凰V15官中版[PC+安卓/5.11G/更新] [神作SLG/官中/动态]
10分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?