博主头像
Wood Chen

万事如意

  • 累计撰写 284 篇文章
  • 累计创建 238 个标签
  • 累计收到 20 条评论

目 录CONTENT

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

2023-07-06 · 0 评论 · 0 点赞 · 86 阅读 · 0 字

这里提供的方法是让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 [email protected]

评论区