本文作者:丁辉
Git配置本地代理
本地启动代理后,使用命令更改端口
配置代理
全局代理
1
2git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080针对特定网站代理
1
2
3
4
5
6
7# http协议
git config --global http.https://github.com.proxy https://127.0.0.1:1080
git config --global https.https://github.com.proxy https://127.0.0.1:1080
# socks5协议
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
查看所有配置
1 | git config --global --list |
取消 reset 代理设置
1 | git config --global --unset http.proxy |
I'm so cute. Please give me money.
- 本文链接: https://blog.offends.cn/Linux/Git/Git配置本地代理.html
- 版权声明: 本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。