1
2
cd "$(brew --repo)"
git remote set-url origin git://mirrors.ustc.edu.cn/brew.git

来源https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git

$ gem sources –add https://gems.ruby-china.org/ –remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.org

确保只有 gems.ruby-china.org