Does git clone work through NTLM proxies?

前端 未结 9 1406
情书的邮戳
情书的邮戳 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:41

    Cloning works for me but only over HTTP (since our corporate firewall blocks the ssh/git protocols):

    $ export http_proxy="http://username:password@proxy:port/"
    $ git clone http://github.com/sunlightlabs/fiftystates_site.git fifty
    Initialized empty Git repository in /home/user/fifty/.git/
    got e15f5192b923d8e87abaeb9406d0f4d80403da09
    walk e15f5192b923d8e87abaeb9406d0f4d80403da09
    got a78b792191f1cf5e961753dcfe05e9c809bdb0ed
    got 76e6e86e72a0f998f7663da69ca49c457a302e27
    walk 76e6e86e72a0f998f7663da69ca49c457a302e27
    got 35b68a3b876fb90e73ba7a7eb51432e825ef2aa3
    ...
    

    Github suggests cloning via git://github.com/... but you have to change it to http://github.com/... manually.

    Edit: I'm using git version 1.5.6.3.

    Hope that helps!

提交回复
热议问题