描述如题
资源访问太慢了,使用全局VPN也无法解决
解决方案使用镜像代理
参考https://www.jianshu.com/p/62f1b963baa6方案,但使用中科大镜像过程中并没有解决问题,后改用清华镜像解决
操作步骤
step1:
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
step2:
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
最后进行验证
brew update
验证过程中可打开活动监视器查看网络占用情况
如果网速正常,等待几分钟后得到一下结果代表修改成功