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

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

相关推荐
lkbhua莱克瓦246 小时前
Java基础——常用算法4
java·数据结构·笔记·算法·github·排序算法·快速排序
眼小博6 小时前
多人协作Git开发流程指南
git
lpfasd12313 小时前
git-团队协作基础
chrome·git·elasticsearch
John Song15 小时前
git多个账号管理
git·github
CV_J16 小时前
解决Git 冲突后本地提交丢失/未推送问题
git
__Witheart__16 小时前
Git 某个分支恢复到某个特定的 commit 状态
git
破烂pan17 小时前
github精选Agent学习repo
llm·github·agent
XU磊26017 小时前
Git 实现github仓库管理-删除指定目录下的所有文件并保留目录结构
git·github
zhimingwen20 小时前
解决 GitLab Token 轮换后 SourceTree 认证失败问题
git
昵称是6硬币20 小时前
代码管理——VS Code|Git
git·代码管理