中科大的镜像
中科大镜像比较稳定,而且速度不错。
官方网站: http://mirrors.ustc.edu.cn/
搜索 brew ,然后点击 Help 即可查看用法:
替换Homebrew默认源
替换brew.git:
➜ cd "$(brew --repo)"
➜ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
替换homebrew-core.git:
➜ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
➜ git remote set-url origin https://mirrors.