运行以下命令替换
以中科大镜像源为例
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
brew update
还原
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
brew update
常用国内镜像源地址
中科大
https://mirrors.ustc.edu.cn/
清华大学
https://mirrors.tuna.tsinghua.edu.cn/
阿里云
https://mirrors.aliyun.com/
本文作者:Drixn
本文链接:https://www.drixn.com/2458.html
版权申明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
评论列表(1条)
真心感谢.博主加油