首页 > 解决方案 > Git - 使用系统代理

问题描述

我有一些问题和蚂蚁使用我的礼物连接代理。我知道有两种方法可以做到这一点

  1. 在中定义代理.gitconfig

    [http]
        proxy = http://username:password@proxydomain:port
        sslverify = false
    [https]
        proxy = http://username:password@proxydomain:port
        sslverify = false
    
  2. 使用环境变量

    set http_proxy=http://username:password@proxydomain:port
    set https_proxy=http://username:password@proxydomain:port
    

Git是否有可能使用系统设置进行代理?像浏览器或其他软件没有手动设置?

标签: gitgithubproxy

解决方案


推荐阅读