1 2 3 4

git时:OpenSSL SSL_read: Connection was reset, errno 10054

OpenSSL SSL_read: Connection was reset, errno 10054 ...

处理方法

Solution1: (原因)更新DNS缓存。
在cmd中输入以下命令:

ipconfig /flushdns

Solution2: (原因)文件太大了。
改为500MB,在Git Bash中输入以下命令:

git config http.postBuffer 5242880003

Solution3: 修改解除SSL认证。
在Git Bash中输入以下命令:

git config --global http.sslVerify "false"

Solution4: (原因)自己配置的用户名,邮箱可能输入错误了。

# 修改,用户名,邮箱
git config --global user.name "xxx"
git config --global user.email "xxx"

# 移除仓库,重新添加
git remote rm origin
git remote add origin https://github.com/XXX
posted @ 2022-08-29 09:25  犹豫就会拜佛  阅读(54)  评论(0编辑  收藏  举报