在用git push指令提交项目时,由于网络等各种原因时常报错,针对以下几个问题,本文提供解决方法,亲测有效!

问题一:

fatal: unable to access 'https://github.com/xxxxx/xxx.git/': OpenSSL SSL_read: Connection was reset, errno 10054

问题二:

fatal: unable to access 'https://github.com/xxxxx/xxx.git/': Failed to connect to github.com port 443 after 21086 ms: Timed out

两个问题都可以以下尝试

1. 关闭网络代理(比如关闭网络代理等vpn),

2.所连网络是校园网等内网,没有权限访问github网站(可以直接点击github官网测试一下),如果确实无法访问,直接连手机热点就可以。

另附git提交指令:

git init

git add README.md

git commit -m "first commit"

git branch -M main

git remote add origin https://github.com/18205123/test.git

git push -u origin main
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐