我无法更新我的存储库,因为当我提交项目时出现以下错误。
我被告知删除index file并运行这些命令del .git\index,
但是我的项目文件中git reset没有(请参阅下面的项目文件)index file
知道如何修复此错误吗?
错误
9:44 AM Commit failed with error
0 files committed, 13 files failed to commit: Jobly Version 1.0
Jobly Version 1.1
Jobly Version 2.0
Jobly Version 2.1
bad signature 0x00000000
index file corrupt
Run Code Online (Sandbox Code Playgroud)
我的项目文件夹
我看不到index.file
如果您使用 git worktrees,这些步骤将不起作用,因为该文件不位于 .git/index。它位于父存储库中的 ./git/worktrees/[child name]/index.html 中。删除该文件。