Git 设置代理
Git 设置代理
CloudyShore我们在写代码时,很容易遇到如下:
1 | D:\temp>ssh [email protected] |
故我们需要为ssh配置proxy来访问github等网站
Git SSH
- Windows
~/.ssh/config
1 | Host github.com |
- Linux
~/.ssh/config
1 | Host github.com |
Git HTTP(S)
1 | [http "https://github.com"] |

我们在写代码时,很容易遇到如下:
1 | D:\temp>ssh [email protected] |
故我们需要为ssh配置proxy来访问github等网站
~/.ssh/config1 | Host github.com |
~/.ssh/config1 | Host github.com |
1 | [http "https://github.com"] |