【发布时间】:2021-08-20 06:07:04
【问题描述】:
当我使用 git add 时出现错误。
$ git add .
error: short read while indexing .editorconfig
error: .editorconfig: failed to insert into database
error: unable to index file '.editorconfig'
fatal: adding files failed
我该如何解决?
【问题讨论】:
-
您是否有另一个文件名称相同但大小写不同,例如
.Editorconfig? youtrack.jetbrains.com/issue/IDEA-257266 -
@WillWalsh 我的 .ediconfig
-
root = true [] charset = utf-8 end_of_line = lf insert_final_newline = true indent_style = space indent_size = 4 trim_trailing_whitespace = true [.md] trim_trailing_whitespace = false [*. {yml,yaml}] indent_size = 2
-
你在使用 Git for Windows 吗?正如我发送的 URL 中所述,这可能是由于 Git 尝试添加不同大小写的相同文件名。
-
是的,我正在使用 git for windows