Git提交项目报错:
unable to access 'https://github.com/***.git': OpenSSL SSL_read: Connection was reset, errno 10054
Error Message
刚创建了一个项目想上传到GitHub,结果突然间说SSL认证出错。
PS G:\TUST\每日健康填报> echo "# ChaoXingDailyHealthReport" >> README.md
PS G:\TUST\每日健康填报> git init
Initialized empty Git repository in G:/TUST/每日健康填报/.git/
PS G:\TUST\每日健康填报> git add README.md
PS G:\TUST\每日健康填报> git commit -m "first commit"
[master (root-commit) 64ca6bf] first commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.md
PS G:\TUST\每日健康填报> git branch -M main
PS G:\TUST\每日健康填报> git remote add origin https://github.com/Matrix-King-Stu
dio/ChaoXingDailyHealthReport.git
PS G:\TUST\每日健康填报> git push -u origin main
fatal: unable to access 'https://github.com/Matrix-King-Studio/ChaoXingDailyHealt
hReport.git/': OpenSSL SSL_read: Connection was reset, errno 10054
Solve
关掉SSL验证就可以了。
git config --global http.sslVerify "false"
|