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

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

    For me the git:// just doesn't work through the proxy although the https:// does. This caused some bit of headache because I was running scripts that all used git:// so I couldn't just easily change them all. However I found this GEM

    git config --global url."https://github.com/".insteadOf git://github.com/
    

提交回复
热议问题