关于git proxy的问题

刚刚发现一个问题,我给git设置proxy的时候,设置http才有效,https无效,但我clone的是https的一个链接。这是不是说明它还是用http访问的链接?

克隆命令:

git clone https://github.com/liuqinh2s/blog

设置http代理:

git config --global http.proxy 'socks5://127.0.0.1:1080'

设置https代理:

git config --global https.proxy 'socks5://127.0.0.1:1080'
阅读 2k
1 个回答

没有 https.proxy 这个配置项,你只要设置了 http.proxy 所有的 http 流量(包括 https)都会走这个代理

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进