美文网首页
Mac端HomeBrew源替换

Mac端HomeBrew源替换

作者: cheerss | 来源:发表于2017-09-28 20:18 被阅读0次

    原文地址:https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git

    替换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

    在中科大源失效或宕机时可以: 1. 使用清华源设置参考。 2. 切换回官方源:

    重置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

    相关文章

      网友评论

          本文标题:Mac端HomeBrew源替换

          本文链接:https://www.haomeiwen.com/subject/zevvextx.html