Skip to content

Instantly share code, notes, and snippets.

@calvingit
Created November 4, 2023 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvingit/58101a6d5cb2dfda26997dbb8b787420 to your computer and use it in GitHub Desktop.
Save calvingit/58101a6d5cb2dfda26997dbb8b787420 to your computer and use it in GitHub Desktop.

https 代理

~/.gitconfig 文件里配置

[http]
  proxy = socks5://127.0.0.1:1080
[https "github.com"]
  proxy = socks5://127.0.0.1:1080
  sslverify = false

ssh 代理

~/.ssh/config 文件里配置

Host github.com
  ProxyCommand /usr/bin/nc -X connect -x socks5://127.0.0.1:1080 %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment