Remember once GIT error

Reason

在IDEA上修改了部分代码,之后就是日常操作. add --> commit --> push.可是却出错了.
error: inflate: data stream error (unknown compression method) unable to unpack xxx header

Pictures from the network, a message that is deleted
这是错误信息哈.大概就是某个啥文件出错了.
After it, Baidu is looking for can be deleted: in the .git directory of the project
Error Messages
这是我的目录,具体的报错信息被我 clean 掉了.^-^
after using git fsck --fullcheck out the error message, in which a specific directory, which file.
Error Messages
这里有俩种错误信息

The first

fatal: loose ... ...
ects/.8/0dxxx

这种,它的错误信息直接是显示的那个目录下,的那个文件

The second

error: inflate: data stream error (unknown compression method)
error: unable to unpack 8f91699dbc7be9923ef942aff77bfeea52887bb5 header
error: inflate: data stream error (unknown compression method)

fatal: loose object 8f91699dbc7be9923ef942aff77bfeea52887bb5 (stored in

.git/objects/8f/91699dbc7be9923ef942aff77bfeea52887bb5) is corrupt

第二种的错误信息,则是目录和文件名连在了一起,然后下面还会有详细的信息

an examination

Finally down, check it again

git fsck --full

Here Insert Picture Description
At this point, you're done!

等等,还没有试试呢,怎么说是错误解决了呢? 那就试试吧!!

Wrong again

git -c credential.helper= -c core.quotepath=false -c log.showSignature=false fetch origin --progress --prune

使用命令,获取最新的
as a result of:
Here Insert Picture Description
我擦嘞,怎么又错了.好吧,接着百度去

solution

还是删除文件.
Here Insert Picture Description

把这个文件干掉就好.
然后在:
git fetch
git merge origin/master

知道最后,完全好了

to sum up:
问题1:

这次问题很突然,就是忽然之间就这样了.百度大多是 电脑突然蓝屏幕,或者死机导致的.
但我,完全没这个问题啊.
虽然每次电脑启动,都会显示 error 这个信息啥的.但从来没放在心上过.不知道是不是这个的锅.

问题2:

这次的问题,具体的机理,也就是说,为什么蓝屏会导致或者死机会导致错误.还不清楚. 最初的错误翻译的是: 数据流膨胀.
但是为什么还不清楚.毕竟知识外包的时代,大多数问题网上都有解决方案.
希望给自己有时间去看一看,探究下底层的原因
Published 36 original articles · won praise 1 · views 50000 +

Guess you like

Origin blog.csdn.net/DXH9701/article/details/103616185