【问题标题】:Git push returning an error when pushing?Git push 推送时返回错误?
【发布时间】:2019-11-29 08:22:39
【问题描述】:
pavan@Pavans-Air link-dashboard % git push origin feat/orders
Enumerating objects: 103, done.
Counting objects: 100% (103/103), done.
Delta compression using up to 4 threads
Compressing objects: 100% (68/68), done.
Writing objects: 100% (72/72), 134.83 KiB | 4.49 MiB/s, done.
Total 72 (delta 35), reused @ (delta 6)
error: RPC failed; curl 92 HTTP/2 stream @ was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

当我将代码推送到我的 GitHub 时出现此错误。

【问题讨论】:

标签: git github


【解决方案1】:

可能是身份验证问题。 尝试使用ssh 而不是http

您使用git remote 更改当前存储库的来源。

git remote add origin git@github.com:username/project.git

或者您也可以将ssh 设置为默认值而不是全局html

GitHub

git config --global url.ssh://git@github.com/.insteadOf https://github.com/

比特桶

git config --global url.ssh://git@bitbucket.org/.insteadOf https://bitbucket.org/

【讨论】:

    【解决方案2】:

    向遇到这种情况的任何其他人致敬。我实际上尝试了我在 stackoverflow 和 github 上看到的所有解决方案,但都没有奏效。 我所要做的就是重新启动我的笔记本电脑,然后再试一次,它就成功了。像魔法一样

    【讨论】:

      猜你喜欢
      • 2015-11-05
      • 2018-12-16
      • 2013-03-28
      • 2013-03-07
      • 2016-06-20
      • 2015-03-15
      • 1970-01-01
      • 2023-03-16
      • 1970-01-01
      相关资源
      最近更新 更多