相关疑难解决方法(0)

使用带有git的socks代理进行http传输

如何让git使用socks代理进行http传输?

我成功地使用GIT_PROXY_COMMAND配置git以使用socks代理进行GIT传输.

此外,我已经配置我的.curlrc文件来定义socks代理,我可以直接用curl命令获取信息,如:

curl http://git.kernel.org/pub/scm/git/git.git/info/refs?service=git-upload-pack
Run Code Online (Sandbox Code Playgroud)

但是如何使用带git的socks代理来使用http传输协议检索数据,如:

git clone http://git.kernel.org/pub/scm/git
Run Code Online (Sandbox Code Playgroud)

git ssh proxy socks

66
推荐指数
5
解决办法
5万
查看次数

标签 统计

git ×1

proxy ×1

socks ×1

ssh ×1