Skip to content

Instantly share code, notes, and snippets.

@qzchenwl
Created July 8, 2017 01:30
Show Gist options
  • Save qzchenwl/14efdc80c5817caf1b084910c149b53c to your computer and use it in GitHub Desktop.
Save qzchenwl/14efdc80c5817caf1b084910c149b53c to your computer and use it in GitHub Desktop.
替换 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.ustc.edu.cn/homebrew-core.git

替换 Homebrew Bottles 源

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment