fatal: unable to access 'https://github.com/ultralytics/yolov5.git/': Recv failure: Connection was reset
无法使用https克隆代码。这都是小事,我用ssh克隆下来了。但是yolov5里,有使用git下载权重和数据及,使用的https。各种方法都试了。关代理、https替换git等等都不行
多试几次就会好的
尝试去掉后面的.git:
git clone https://github.com/ultralytics/yolov5
之前我遇到过这个问题,猜测可能也是本地网络问题,建议尝试一下如下步骤:
1、依次将如下两条语句复制到git中后,点击回车。
git config --global --unset http.proxy
git config --global --unset https.proxy
2、[Win+R]打开运行框,输入cmd 回车,在命令行中输入 ipconfig/flushdns,点击回车,目的是清理DNS缓存
ipconfig/flushdns
操作演示:
3、修复完成后,重新clone试试。
直接 git clone https://... 就可以了呀
这是我找到的Git 使用https克隆代码的内容,你可以参考一下:
https://blog.csdn.net/qq_55172460/article/details/128384459