【问题标题】:fatal: the remote hung up unexpectedly. Can’t push things to my git repo致命:遥控器意外挂断。无法将内容推送到我的 git 存储库
【发布时间】:2020-03-05 14:52:58
【问题描述】:

我的第一个问题是这样的:

Writing objects: 60% (9/15) 

它在上传速度非常低(以kb / s)冻结了一段时间,然后在很长一段时间后给出了这个消息:

fatal: the remote end hung up unexpectedly
Everything up-to-date

我找到了一些似乎可以解决的问题:

git config http.postBuffer 524288000

这产生了一个如下所示的新问题:

MacBook-Pro-Liana:LC | myWebsite Liana$ git config http.postBuffer 524288000
MacBook-Pro-Liana:LC | myWebsite Liana$ git push -u origin master
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 4 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 116.01 MiB | 25.16 MiB/s, done.
Total 15 (delta 2), reused 0 (delta 0)
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

请帮忙,我不知道发生了什么......

【问题讨论】:

    标签: html css git repository hung


    【解决方案1】:

    首先,Git 2.25.1 明确表示:

    各种情况下的用户都会发现自己遇到 HTTP 推送问题。

    这些问题通常是由防病毒软件、过滤代理或其他中间人情况引起的;其他时候,它们是由于网络的简单不可靠性。

    这不适用于上述任何情况,仅在极少数情况下有用:本质上,当连接不正确支持 HTTP/1.1 时。

    一般来说,提高这一点并不是解决大多数推送问题的有效解决方案,但会显着增加内存消耗,因为即使是小推送也会分配整个缓冲区。

    其次,这取决于您的实际远程(GitHub?GitLab?BitBucket?本地服务器)。所述远程服务器可能正在发生事件。

    【讨论】:

    • 我用的是GitHub...而且我已经成功上传了几个项目,它们非常相似。我以前没有这样的问题...
    • @LianaA 你有很多提交要推送吗?或者其中一个提交可能太大了? (您可以使用stackoverflow.com/a/42544963/6309 雾化这些对象)
    • 不是真的...只有 8 个文件,3 个 html,1 个 css,2 个 img 和 2 个 gifs
    猜你喜欢
    • 2011-10-12
    • 1970-01-01
    • 2012-07-30
    • 1970-01-01
    • 2013-07-04
    • 2012-04-15
    • 2013-02-20
    • 1970-01-01
    相关资源
    最近更新 更多