brew error: Not a valid ref: refs/remotes/origin/master的解决方法
执行brew update
时出现了下面的错误
解决方法如下
1
2
3
error: Not a valid ref: refs/remotes/origin/master
fatal: Could not resolve HEAD to a revision
Already up-to-date.
1
2
3
4
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git fetch --prune origin
git pull --rebase origin master
brew install
搞定了~