windows环境git(github) 使用代理ssh/http

修改或增加~/.ssh/config

ProxyCommand connect -S 127.0.0.1:10808 %h %p

其中-S代表使用socks代理。如果是http模式,则为-H 后接代理地址,如127.0.0.1:10808

如果你只想修改特定的情况做配置,可以增加如下内容

Host github.com
 User git
 Port 22
 Hostname github.com

参考链接

Getting git to work through a proxy server (in Windows)

版权声明: 本文首发于 指尖魔法屋-windows环境git(github) 使用代理ssh/http(https://blog.thinkmoon.cn/post/954_windows%E7%8E%AF%E5%A2%83git_github_-%E4%BD%BF%E7%94%A8%E4%BB%A3%E7%90%86ssh_http/) 转载或引用必须申明原指尖魔法屋来源及源地址!