# 设置socket5代理

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

git config --global https.proxy 'socks5://127.0.0.1:1087'

# 设置HTTP/HTTPS代理

git config --global http.proxy http://127.0.0.1:1087

git config --global https.proxy https://127.0.0.1:1087

# 取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

相关文章:

  • 2022-02-08
  • 2021-06-07
  • 2021-12-10
  • 2022-01-22
  • 2022-02-03
  • 2021-09-25
  • 2022-02-21
猜你喜欢
  • 2022-02-24
  • 2022-12-23
  • 2022-01-29
相关资源
相似解决方案