【问题标题】:Can someone help me push code to my github repo?有人可以帮我将代码推送到我的 github 仓库吗?
【发布时间】:2021-12-19 22:32:37
【问题描述】:

每当我尝试将代码推送到我的 github 存储库时,我都会遇到此错误

Enumerating objects: 104, done.
Counting objects: 100% (104/104), done.
Delta compression using up to 4 threads
Compressing objects: 100% (88/88), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (104/104), 2.77 MiB | 55.00 KiB/s, done.
Total 104 (delta 32), reused 0 (delta 0), pack-reused 0       
fatal: the remote end hun

【问题讨论】:

标签: git github


【解决方案1】:

您可以使用 Github Desktop 将您的代码推送和拉取到 Github

https://desktop.github.com/

有关更多信息,请阅读他们的文档

https://docs.github.com/en/desktop

这是一个选项

【讨论】:

    【解决方案2】:

    first:-

    使用此命令将您的 http 版本从 2 降级到 1.1

    $ git config --global http.version HTTP/1.1
    

    second:- 然后使用

    推送代码
    $ git push
    

    third:- 然后再次将http的版本更改为2。

    $ git config --global http.version HTTP/2
    

    【讨论】:

      猜你喜欢
      • 2021-08-22
      • 1970-01-01
      • 1970-01-01
      • 2022-10-13
      • 1970-01-01
      • 2022-06-11
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      相关资源
      最近更新 更多