一、使用中科大镜像源
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
二、重置官方镜像源
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
本文标题:Homebrew国内镜像源使用
本文链接:https://www.haomeiwen.com/subject/jchzoktx.html
网友评论