Does git clone work through NTLM proxies?

前端 未结 9 1410
情书的邮戳
情书的邮戳 2020-12-04 18:30

I\'ve tried both using export http_proxy=http://[username]:[pwd]@[proxy] and git config --global http.proxy http://[username]:[pwd]@[proxy].

9条回答
  •  天命终不由人
    2020-12-04 19:03

    Git supports NTLM proxy authentication from version 1.7.10 onwards, relevant commit is https://github.com/gitster/git/commit/dd6139971a18e25a5089c0f96dc80e454683ef0b

    1.7.10 release notes briefly mentioned it as:

    * HTTP transport learned to authenticate with a proxy if needed.
    

    I've successfully tested it with the proxy at my workplace which is NTLM and requires user/pass, you can test yourself with following commands:

    git config --global http.proxy http://user:password@proxy.com:port
    git clone http://git.videolan.org/git/bitstream.git
    

    Regards,

提交回复
热议问题