2019-07-01

作者: 言雨朦胧 | 来源:发表于2019-07-01 15:03 被阅读0次

    更换mac下brew源

    阿里云


    # 替换brew.git

    cd "$(brew --repo)"

    git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

    # 替换homebrew-core.git

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

    git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

    # 刷新源

    brew update


    清华源


    # 替换brew.git

    cd "$(brew --repo)"

    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

    # 替换homebrew-core.git

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

    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

    # 刷新源

    brew update

    相关文章

      网友评论

        本文标题:2019-07-01

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