Git推送以“致命:早期EOF”失败当PUSHing但只在一个文件上 [英] Git push fails with "fatal: early EOF" when PUSHing but only on one file

查看:355
本文介绍了Git推送以“致命:早期EOF”失败当PUSHing但只在一个文件上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将纹理和文本文件添加到我的回购中时,它一切正常,但是当我尝试添加.blend文件时,出现此错误。我尝试了一些我在这里和谷歌上找到的东西,它们都没有工作(所有的都是用于克隆/拉命令的)。我使用的是Tortoise git 1.7 .8和Git 1.7.10 msysgit - 在最新版本失败后我更改了它们。



其他人没有问题推送回购,但我没有发送它们

以下是输出:到ssh:// git @ xxx:x / home / git / gitrepo
计数对象:4,完成。
压缩对象:100%(3/3)
写入对象:100%(3/3),112.00 KiB | 116 KiB / s
写作对象:100%(3/3),113.07 KiB |完成116 KiB / s。
合计3(delta 0),重用0(delta 0)
致命:早期EOF
错误:解压缩失败:解压缩对象异常退出
到ssh:// git @ xxx:x / home / git / gitrepo
! [remote rejected] master - > master(n / a(unpacker error))
错误:未能将某些文件推送到'ssh:// git @ xxx:x / home / git / gitrepo'

编辑:现在看来这是一个服务器问题,因为github的作品。如果找到解决方案,我会更新。

解决方案

(这个答案是解决方法,而不是解决方案。)



我刚刚遇到了同样的问题(无法使用TortoiseGit / msysgit推送我的更改)。由于在解包过程中出现问题,因此可以通过禁用压缩来避免此问题:


  1. 文件夹/ TortoiseGit / Settings上的菜单菜单

  2. 编辑本地.git / config
  3. compression = 0 添加到

    When I try adding textures and text files to my repo it all works, but when I try adding a .blend file I get this error. I've tried a bunch of things I found here and on google, none of them worked (all were for clone/pull commands)

    I'm using Tortoise git 1.7.8 and Git 1.7.10 msysgit - I changed to them after the latest builds failed.

    Others have no problem pushing things to the repo, but I did not send them the .blend file.

    Here is the output:

    Pushing to ssh://git@x.x.x:x/home/git/gitrepo
    Counting objects: 4, done.
    Compressing objects: 100% (3/3)
    Writing objects: 100% (3/3), 112.00 KiB | 116 KiB/s
    Writing objects: 100% (3/3), 113.07 KiB | 116 KiB/s, done.
    Total 3 (delta 0), reused 0 (delta 0)
    fatal: early EOF
    error: unpack failed: unpack-objects abnormal exit
    To ssh://git@x.x.x:x/home/git/gitrepo
    ! [remote rejected] master -> master (n/a (unpacker error))
    error: failed to push some refs to 'ssh://git@x.x.x:x/home/git/gitrepo'
    

    EDIT: It now seems this is a server problem, since github works. I'll update if I find a solution.

    解决方案

    (This answer is a workaround, not a solution.)

    I've just had the same problem (can't push my changes anymore using TortoiseGit/msysgit). Since the problem occurs during unpacking, it can be avoided by disabling compression:

    1. Context Menu on the folder/TortoiseGit/Settings
    2. "Edit local .git/config"
    3. Add compression = 0 to the [core] section.

    Obviously, disabling compression might affect performance, so use this workaround at your own discretion.

    这篇关于Git推送以“致命:早期EOF”失败当PUSHing但只在一个文件上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆