githup开了代理push不上去

你们好,我是金金金。

场景

  • git push出错

解决

  • cmd查看

    git config --global http.proxy

    git config --global https.proxy

  • 如果什么都没有,代表没设置全局代理,此时如果你开了代理,则执行如下,设置代理

    git config --global https.proxy 127.0.0.1:您的端口号

    git config --global http.proxy 127.0.0.1:您的端口号

  • 如果你之前开了代理并且设置了全局代理,如果你现在没开代理 push不上去的话,则就取消之前设置的全局代理
    git config --global --unset http.proxy

    git config --global --unset https.proxy

  • 编写有误还请大佬指正,万分感谢。

相关推荐
yanlaifan33 分钟前
恢复git硬删除的commit
git
阿琳a_2 小时前
在github上部署个人的vitepress文档网站
前端·vue.js·github·网站搭建·cesium
学渣y4 小时前
git分布式版本控制系统
分布式·git·elasticsearch
wuxuand4 小时前
GitHub页面配置
github
darkb1rd4 小时前
claurst:Rust 重构终端编码代理实战指南
开源·github·好物分享
时空无限4 小时前
git 文件冲突之后如何操作
git
小雨青年5 小时前
当缓存成为生产力:GitHub Actions 缓存机制的深度优化指南
缓存·github
SUNNY_SHUN5 小时前
LiveKit Agents:基于WebRTC的实时语音视频AI Agent框架(9.9k Star)
人工智能·github·webrtc
CoderJia程序员甲5 小时前
GitHub 热榜项目 - 日榜(2026-04-03)
人工智能·ai·大模型·github·ai教程