这不是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