首先吃一碗佛跳墙
我用的是蓝黑渐变小猫咪,端口号是7890(记住端口号)
只对github进行起跳
git config --global http.https://github.com.proxy http://127.0.0.1:7890
git config --global https.https://github.com.proxy http://127.0.0.1:7890
或者:
git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
git config --global https.https://github.com.proxy socks5://127.0.0.1:7890
对全局进行起跳
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
到这里问题就应该解决了
取消起跳:
git config --global --unset http.proxy
git config --global --unset https.proxy
查看已经有的菜单:
git config --global -l
如果还不行再试一下更改DNS为8.8.8.8
1、 在任务栏中,点击右下角电脑网络图标,选择打开网络和internet设置
2、 点击右侧打开更改适配器选项
3、 根据网络连接类型WLAN网或以太网,右键选择属性
4、 点击选择iPv4协议,右键打开属性
5、 点击使用下面的DNS服务器地址,设置后保存
本文详细介绍了如何通过`gitconfig`设置全局代理以访问GitHub,包括使用HTTP/HTTPS代理和取消代理,以及修改DNS设置解决网络问题的过程。
1361

被折叠的 条评论
为什么被折叠?



