git:// through proxy

后端 未结 4 2124
醉话见心
醉话见心 2020-12-12 11:46

I\'m behind a firewall that is blocking port 9418 (git) and am trying to install some tools that are explicitly doing a checkout of git://github.com/..., so I c

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 12:34

    If you are talking about git submodules, try this:

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

    ...taken from here.

    This way, you don't need to set any proxy, nor run any script.

提交回复
热议问题