brew install gh Error: No similarly named formulae found.
mac下安装gh提示
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf “/opt/homebrew/Library/Taps/homebrew/homebrew-core”
brew tap homebrew/core
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
执行下面两行代码后gh安装成
rm -rf “/opt/homebrew/Library/Taps/homebrew/homebrew-core”
brew tap homebrew/core
参考:
https://github.com/cli/cli/discussions/5189