Git代理配置与取消

admin
2023-07-02 / 0 评论 / 82 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年07月02日,已超过300天没有更新,若内容或图片失效,请留言反馈。

Git代理配置与取消代理

  1. 查看是否配置代理

    git config --global http.proxy
  2. 配置代理

    git config --global http.proxy http://127.0.0.1:10809
    git config --global https.proxy http://127.0.0.1:10809    
  3. 取消代理

    $ git config --global --unset http.proxy
    $ git config --global --unset https.proxy

注意:http://127.0.0.1:10809为自己代理地址,根据自己情况修改。

2

评论 (0)

取消