Does git clone work through NTLM proxies?

前端 未结 9 1418
情书的邮戳
情书的邮戳 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 18:42

    You can also use cntlm,

    http://cntlm.sourceforge.net/

    A solution similar to ntlmaps but written in pure C. It works in the same way as ntlmaps by creating a local proxy server (127.0.0.1) at a port (3128 default) on your machine. This new locally created proxy server does not require any authentication and thus can be used with any application that supports http proxy. It can also create a local socks proxy if you need one.

    The main advantage over ntlmaps which is written in python, is that cntlm has very low CPU and RAM usage, typically <2%.

提交回复
热议问题