How to fix the error: bad signature 0x00000000 index file corrupt

1

I have not been able to update my repository because I'm getting this error below when I commit the project.

I have been told to remove the index file and run these commands del .git\indexand git reset however there no index file in my project file (see below my project file)

Any idea how can I fix this error?

error

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

my project folder I cannot see the index.file

enter image description here

enter image description here

git
flutter
github
asked on Stack Overflow May 25, 2020 by Alfonso Angulo

1 Answer

0

If you're using git worktrees, the steps wont work, as the file isn't located at .git/index. It's located in the parent repo, at ./git/worktrees/[child name]/index. Delete that file.

answered on Stack Overflow Aug 14, 2020 by Ash

User contributions licensed under CC BY-SA 3.0