Git through a Proxy. What is causing the 407 error when cloning?

后端 未结 11 2175
长发绾君心
长发绾君心 2020-12-08 16:20

I\'m trying to use Git through a proxy. I\'ve tried setting parameters \'git config --global\' in a lot of ways but always without success when cloning repositories.

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 17:04

    This works for users on a domain and behind proxy with authentication and HTTPS inspection. Use the following where the %5c is used instead of "\". ie. DOMAIN%5cusername@proxy:port

    Open GIT config in editor by entering below command:

    git config --global -e     
    

    Add/update following sections and save:

    [http]
        proxy = http://domain%5cusername:password@proxy:port
        sslVerify = false
    [https]
        proxy = http://domain%5cusername:password@proxy:port
        sslVerify = false
    

提交回复
热议问题