How do I pull from a Git repository through an HTTP proxy?

后端 未结 28 2574
星月不相逢
星月不相逢 2020-11-22 11:57

Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP.

I have

28条回答
  •  长情又很酷
    2020-11-22 12:25

    Setup proxy to git

    command

    git config --global http.proxy http://user:password@domain:port
    

    example

    git config --global http.proxy http://clairton:123456@proxy.clairtonluz.com.br:8080
    

提交回复
热议问题