【笔记】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:1080" |
取消代理
1 | git config --global --unset http.proxy |
ssh形式
- 修改或创建
~/.ssh/config
配置文件
1 | 必须是 github.com |