git fsck --full-松散的对象。如何修复git中消失的对象?

时间:2019-02-06 11:18:18

标签: git tslint editorconfig lf git-fsck

这不是CRC问题,一切都很好,直到掉毛为止。 lint:fix更改后发生了这种情况,但是我不确定,也许.editorconfig的{​​{1}}开始破坏项目文件夹中的某些文件-不知道。

root = true

我用git fsck --full error: inflate: data stream error (invalid distance too far back) error: unable to unpack header of .git/objects/25/bbda994d2ab2009078d58a5f33f78c827610b2 error: 25bbda994d2ab2009078d58a5f33f78c827610b2: object corrupt or missing: .git/objects/25/bbda994d2ab2009078d58a5f33f78c827610b2 Checking object directories: 100% (256/256), done. Checking objects: 100% (29350/29350), done. error: inflate: data stream error (invalid distance too far back) error: unable to unpack 25bbda994d2ab2009078d58a5f33f78c827610b2 header fatal: loose object 25bbda994d2ab2009078d58a5f33f78c827610b2 (stored in .git/objects/25/bbda994d2ab2009078d58a5f33f78c827610b2) is corrupt 设置了tslint的配置,我猜想VScode开始在后台更改文件。

我该如何解决这个问题?有任何想法吗?或者如何在LF中修复不在logs中建立的松散对象?我无法gitk --all,无法git checkout ...


.editorconfig:

git stash

TSLint配置:

# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false

0 个答案:

没有答案