git push崩溃并显示"inflate return -551". [英] git push crashes with "inflate returned -551"

查看:85
本文介绍了git push崩溃并显示"inflate return -551".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将git信息库从ubuntu服务器推送到另一台ubuntu服务器时,出现以下错误:

While pushing a git repository from a ubuntu server to another ubuntu server, I get the following error:

Pushing to gitosis@xxx:yyy
Enter passphrase for key '/home/ngrislain/.ssh/id_rsa': 
Counting objects: 88, done.
Compressing objects: 100% (50/50), done.
error: inflate returned -551), 22.15 MiB | 1.13 MiB/s   
error: pack-objects died of signal 13MiB | 1.10 MiB/s   
error: failed to push some refs to 'gitosis@xxx:yyy'

我的磁盘未满,我仍然可以拉... 有人知道吗?

My disk is not full, I still can pull... Does anyone understand this ?

谢谢

推荐答案

简短的回答:您的远程存储库已损坏.

Short answer: Your remote repository is broken.

git存储库中的大多数对象(提交,旧文件内容等)都打包在.pack文件中.每当git需要访问那些对象时,它首先需要解压缩它们.如果打包文件损坏,则git将不再能够访问这些对象,并且会感到不满意.

Most objects (commits, old file contents, etc.) in a git repository are packed in .pack files. Whenever git needs to access those objects it first needs to unpack them. If the packed file is corrupt git is no longer able to access those objects and is unhappy.

您试图推送到一个远程存储库,该存储库似乎包含损坏的打包文件. 远端需要打开包装,但无法打开包装.因此,它无法集成您的推送.

Your tried to push to a remote repository, which seems to contain such a corrupt pack file. The remote end needed to unpack it, but was not able to do so. Hence it was not able to integrate your push.

您需要修复远程存储库.由于git是分布式VCS,因此一种方法就是通过从您自己的存储库中进行克隆在服务器上创建一个新的存储库.

You need to fix your remote repository. As git is a distributed VCS, one way to do this is just to create a new repository on the server by cloning from your own repository.

根据您感兴趣的详细程度,还可以查看

Depending on the level of detail you are interested in you may also look at the man page of git-unpack-objects or at the git source code int git_inflate(...) in zlib.c, which contains the failing call to inflate.

还有一个 GitFaq 关于如何解决损坏的存储库.

There is also a GitFaq on how to fix a broken repository.

这篇关于git push崩溃并显示"inflate return -551".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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