Wood Chen

git提交代码失败,网络连接失败

0 评论86 阅读32 字

这里提供的方法是让git也使用网络代理

解决办法

git config --global https.proxy http://127.0.0.1:7890
git config --global http.proxy http://127.0.0.1:7890
git config --global socks5.proxy http://127.0.0.1:7890

删除配置

git config --global --unset https.proxy
git config --global --unset http.proxy
git config --global --unset socks5.proxy

设置全局username和useremail

git config --global user.name wood
git config --global user.email wood@czl.net

最后更新于 2024-01-14

相关文章

评论 0