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

后端 未结 28 2606
星月不相逢
星月不相逢 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:04

    For Windows

    Goto --> C:/Users/user_name/gitconfig

    Update gitconfig file with below details

    [http]

    [https]

    proxy = https://your_proxy:your_port
    

    [http]

    proxy = http://your_proxy:your_port
    

    How to check your proxy and port number?

    Internet Explorer -> Settings -> Internet Options -> Connections -> LAN Settings

提交回复
热议问题