问题描述

在win10系统中,在CMD中执行git clone 命令的时候一直报一下错误

1
2
3
4
5
6
7
8
9


C:\codebase\vc>git clone https://github.com/TonyChen56/WeChatRobot.git


Cloning into 'WeChatRobot'...


fatal: unable to access 'https://github.com/TonyChen56/WeChatRobot.git/': getaddrinfo() thread failed to start

问题解决

  1. 简单解决

这个简单粗暴的问题解决方法是直接关闭本地的网络防火墙

操作方法:

开始菜单=》右键=》设置=》安全=》Windows安全中心=》防火墙和网络保护=》公用网络=》Microsoft Defender 防火墙 关闭

  1. 精细解决:

开始菜单=》右键=》设置=》安全=》Windows安全中心=》防火墙和网络保护=》允许应用通过防火墙=》更改设置=》允许其他应用=》选择git程序的路径