Hellow World!

风来、雨来、风停、雨停

Mac下更换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

brew update

 

切换到官方源

第一步:重置brew.git

cd $(brew –repo)

git remote set-url origin https://github.com/Homebrew/brew.git

第二步:重置homebrew-core.git

cd $(brew –repo)/Library/Taps/homebrew/homebrew-core”

git remote set-url origin https://github.com/Homebrew/homebrew-core.git

brew update

 

完成。

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注