官方安装代码不好用,总是禁止访问
- 翻墙
- dns污染,用switchhosts软件,把ip和域名对应
别人的仓库
换清华源
新问题:git仓库迭代树有问题
解决办法:
问题描述:Everything you've posted suggests that you're actually overwriting an existing install that has a b0rken core tap. That's unnecessary, since the following is less disruptive: rm -fr $(brew --repo homebrew/core) # because you can't `brew untap homebrew/core` brew tap homebrew/core
换源
cd "$(brew --repo)"git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git brew update