git clone失败或连接超时解决方案

git clone失败或连接超时解决方案

当我们在git上克隆代码时,可能会报错或者连接超时:如下图

在这里插入图片描述
1) 可以把仓库地址前缀https换成 git:

git clone https://github.com/coderwhy/supermall.git
git clone git://github.com/coderwhy/supermall.git

2)克隆成功
在这里插入图片描述

你可能感兴趣的:(#,前端技术栈,#,JavaScript,git)