Using a socks proxy with git for the http transport

前端 未结 7 1928
臣服心动
臣服心动 2020-11-28 00:48

How to make git use a socks proxy for HTTP transport?

I succeed in configuring git with GIT_PROXY_COMMAND to use a socks proxy for GIT transport.

Also, I hav

7条回答
  •  抹茶落季
    2020-11-28 01:16

    I use the following command to clone a specific repository from socks5 proxy. The proxy settings are specified with --config option.

    $ git clone https://github.com/xxxxx --config 'http.proxy=socks5://127.0.0.1:1234'
    

提交回复
热议问题