【笔记】Git配置代理
前言
Git配置和取消代理
http代理
1 | git config --global http.proxy "http://127.0.0.1:8080" |
socks5代理
1 | git config --global http.proxy "socks5://127.0.0.1:8080" |
取消代理
1 | git config --global --unset http.proxy |
单独为Github配置代理
设置代理
1 | git config --global http.https://github.com.proxy "http://127.0.0.1:8080" |
取消代理
1 | git config --global --unset http.https://github.com.proxy |
ssh形式
- 修改或创建
~/.ssh/config配置文件
1 | 必须是 github.com |