当前位置: 首页 > news >正文

git报错:Failed to connect to 127.0.0.1 port 1080

Bug描述

由于在试了网上的这条命令

git config --global http.proxy socks5 127.0.0.1:1080
git config --global https.proxy socks5 127.0.0.1:1080git config --global http.proxy 127.0.0.1:1080
git config --global https.proxy 127.0.0.1:1080

Bug描述:Failed to connect to 127.0.0.1 port 1080 after 2024 ms: Couldn’t connect to server

在网上试了好多方法都不行,最后参考:Git报错Failed to connect to 127.0.0.1 port 1080成功解决。

解决方法

  • 方法一
git config --global --unset http.proxy
git config --global --unset httpx.proxy

亲测无效

  • 方法二

在这里插入图片描述

删掉箭头指向的整行

在这里插入图片描述

成功ping上了。

penge@DESKTOP-B0LM74I MINGW64 /e/Github
$ ping www.github.comPinging github.com [20.205.243.166] with 32 bytes of data:
Reply from 20.205.243.166: bytes=32 time=108ms TTL=111
Reply from 20.205.243.166: bytes=32 time=110ms TTL=111
Reply from 20.205.243.166: bytes=32 time=111ms TTL=111
Request timed out.Ping statistics for 20.205.243.166:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:Minimum = 108ms, Maximum = 111ms, Average = 109ms

使用git config --list查看,代理信息已经没有了

http://www.lryc.cn/news/178903.html

相关文章:

  • php eayswoole node axios crypto-js 实现大文件分片上传复盘
  • 《Upload-Labs》01. Pass 1~13
  • v-for中的key
  • MySQL学习笔记17
  • 跨境电商建站:选择域名需要注意什么?
  • jupyterlab
  • Oracle的递归公共表表达式
  • 解决antd vue ts v-model:value绑定Boolean布尔类型爆红但可以使用
  • zblog插件大全-zblog免费插件
  • 思科、华为、华三、锐捷网络设备巡检命令
  • 正则表达式贪婪模式和非贪婪模式
  • 借助 ControlNet 生成艺术二维码 – 基于 Stable Diffusion 的 AI 绘画方案
  • Codeforces Round 892 (Div. 2) - E. Maximum Monogonosity 思维dp 详细解析
  • R语言中的数据重塑
  • 基于Java实现的社区团购系统设计与实现(源码+lw+部署文档+讲解等)
  • nodejs+vue网上婚纱购物系统elementui
  • 【2023集创赛】加速科技杯三等奖作品:私密性高精度刷手身份认证系统
  • 1500*C. Kefa and Park(dfstree)
  • 【2023保研】双非上岸东南网安
  • Redis与Mybatis
  • MySQL架构 InnoDB存储引擎
  • K8S-CNI
  • Redis 集合类型(Set)和命令 (数据类型 四)
  • thinkphp5 如何模拟在apifox里面 post数据接收
  • 建造者模式 创建型模式之三
  • 发布以太坊测试网络中的第一笔交易
  • No module named ipykernel解决方案
  • Java 基于 SpringBoot 的校园疫情防控系统
  • windows的ui自动化测试相关
  • Mybatis 二级缓存(使用Ehcache作为二级缓存)