损坏的Git存储库(数据流错误) [英] Corrupted Git Repository (data stream error)

查看:132
本文介绍了损坏的Git存储库(数据流错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  X:\WAMP\www\topsecret> git fsck  - 完全
错误:inflate:数据流错误(无效的代码长度设置)
错误:损坏的松散对象'18076434b9cad667dbcf5be20162c506c95c2f55'
致命:松散对象18076434b9cad667dbcf5be20162c506c95c2f55(存储在.git / objects / 18 / 076434b9cad667dbcf5be20162c506c95c2f55中)已损坏

在GIT和我对这个确切的错误进行搜索时,一无所获。自从它回归之后,我真的很想保存这个回购。感谢。



GIT版本:1.7.7.msysgit.0

解决方案

<看看你是否可以找到一个克隆的回购站并手动复制该对象。



以下是您如何移动对象:



http-// www-cs-students .stanford.edu /〜blynn / gitmagic / ch08.html#_the_object_database

对象被压缩,因此您不能将未压缩的内容直接存储到对象目录。


I'm getting these errors:

X:\WAMP\www\topsecret>git fsck --full
error: inflate: data stream error (invalid code lengths set)
error: corrupt loose object '18076434b9cad667dbcf5be20162c506c95c2f55'
fatal: loose object 18076434b9cad667dbcf5be20162c506c95c2f55 (stored in .git/objects/18/076434b9cad667dbcf5be20162c506c95c2f55) is corrupt

I'm a total noob when it comes to GIT and my search for this exact error has come up with nothing. I'd really like to save this repo since it goes way back. Thanks.

GIT Version: 1.7.7.msysgit.0

解决方案

see if you can find a cloned repo and manually copy that object.

Here is how you can move an object:

http://www-cs-students.stanford.edu/~blynn/gitmagic/ch08.html#_the_object_database

objects are zipped so you can't just store the uncompressed contents directly into the objects directory.

这篇关于损坏的Git存储库(数据流错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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