【发布时间】:2021-12-22 10:03:43
【问题描述】:
大家好,我是 git/github 的新手,我尝试将我的 repo 推送到 github,但一直给我这个错误,尽管我按照所有说明将它推送到我的 github。 错误是:
$ git push --all origin
Enumerating objects: 979, done.
Counting objects: 100% (979/979), done.
Delta compression using up to 8 threads
Compressing objects: 100% (939/939), done.
Werror: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (979/979), 3.34 GiB | 2.72 MiB/s, done.
Total 979 (delta 169), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
请有 git 知识的人帮助 git 初学者。
【问题讨论】:
-
我昨天在尝试搜索问题的解决方案时进行了配置,但我一直收到错误。
-
您使用的是什么操作系统,运行的是什么版本的 Git?
-
在 Windows 和 git 版本是 2.33.1-64-bit
-
看来这个错误是由一个错误的 https 连接引起的。尝试使用 ssh 连接到您的存储库。 docs.github.com/en/authentication/connecting-to-github-with-ssh 我建议克隆,做一个小改动,然后尝试提交和推送。