V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
badgate
V2EX  ›  程序员

git bash 上传资源的时候怎么设置代理啊?

  •  1
     
  •   badgate · 2019-10-15 10:05:37 +08:00 · 478 次点击
    这是一个创建于 1648 天前的主题,其中的信息可能已经有所发展或是发生改变。
    git config --local http.proxy 'socks5://127.0.0.1:1080'
    git config --local https.proxy 'socks5://127.0.0.1:1080'
    

    这样行吗

    第 1 条附言  ·  2019-10-15 20:05:47 +08:00
    添加 config 文件,export, global set 貌似都不行。。
    billzhuang
        1
    billzhuang  
       2019-10-15 14:27:31 +08:00
    export http_proxy=socks5://127.0.0.1:1080
    expert https_proxy=socks5://127.0.0.1:1080
    badgate
        2
    badgate  
    OP
       2019-10-15 20:06:03 +08:00
    @billzhuang 和不设置代理没区别。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5252 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 05:52 · PVG 13:52 · LAX 22:52 · JFK 01:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.