git代理设置 以下端口号仅为演示,请按实际修改http代理 1git config --global http.proxy "http://127.0.0.1:10808" 1git config --global https.proxy "http://127.0.0.1:10808" socks5 1git config --global http.proxy "socks5://127.0.0.1:1080" 1git config --global https.proxy "socks5://127.0.0.1:1080" 取消(http为例子) 1git config --global --unset http.proxy 1git config --global --unset https.proxy 查看所有配置以查看代理设置情况 1git config --list 按q即可退出 #linux git代理设置 https://blog.computerqwq.top/2026/06/18/git-dai-li-she-zhi/ 作者 计算机qwq 发布于 2026年6月18日 更新于 2026年6月18日 许可协议 kde后台索引导致系统卡顿 下一篇