欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

git 報錯:OpenSSL SSL_read: Connection was reset, errno 10054 解決方法

 更新時間:2023年04月13日 08:59:09   作者:攻城獅杰森  
這篇文章主要介紹了git 報錯:OpenSSL SSL_read: Connection was reset, errno 10054 解決方法,涉及git配置信息及緩存相關(guān)操作技巧,需要的朋友可以參考下

git 報錯信息:OpenSSL SSL_read: Connection was reset, errno 10054

Gitpush 報錯

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

異常信息

Git Bash 中,push 時,出現(xiàn)錯誤

git push -u origin main
OpenSSL SSL_read: Connection was reset, errno 10054 ...

解決方案

1. 郵箱問題

查看用戶名,郵箱

git config user.name
git config user.email

修改,用戶名,郵箱

git config --global user.name "xxx"
git config --global user.email "xxx"

移除倉庫,重新添加

git remote rm origin
git remote add origin https://github.com/XXX

2.解除SSL認證

Git Bash 中輸入以下命令:

git config --global http.sslVerify "false"

3.更新 DNS 緩存

cmd 窗口輸入

ipconfig /flushdns

4.文件過大,超過上限

修改為 500MB,在 Git Bash 中輸入以下命令:

git config http.postBuffer 5242880003

小結(jié)

多數(shù)情況下國內(nèi)訪問 Github 會被…,或因網(wǎng)絡(luò)波動問題推送失敗。推薦使用 SSH 方式拉去代碼或者參考 開源項目 修改本機 hosts 文件解決訪問問題

PS:筆者遇到這類問題,按照上文所述進行測試的時候,操作為修改用戶名、郵箱,解除SSL認證,更新DNS緩存,最后git clone 拉取github上的開源代碼,一切正常!并沒有進行移除倉庫的操作?;蛟Sbug因人而異吧~

相關(guān)文章

最新評論