git走全局代理

  1. 先找到全局代理端口 一般为 7890

  2. 执行代理命令

    1
    2
    3
    4
    5
    6
    7
    8
    # http | https
    git config --global http.proxy 127.0.0.1:7890
    git config --global https.proxy 127.0.0.1:7890
    #socks5代理
    git config --global http.proxy socks5 127.0.0.1:7890
    git config --global https.proxy socks5 127.0.0.1:7890
    #关闭代理
    git config --global --unset http.proxy

git走全局代理
https://fatwang1.github.io/2024/05/16/2024051600/
作者
衣云乘风
发布于
2024年5月16日
许可协议