cd /usr/local/
git remote set-url origin http://mirrors.ustc.edu.cn/homebrew.git
或者这个:git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
brew update
Composer:
方法:
1. Setup your $COMPOSER_HOME/config.json (You can edit by composer config -g -e
).
{
"repositories": [
{ "packagist": false },
{
"type": "composer",
"url": "http://composer-proxy.jp/proxy/packagist"
}
]
}