My computer suddenly restarted just after I commited my last change, and when I was back it no longer could bring the git for my repo. I checked git files all of files is there but I get different errors when I use git bash commands.
(Opening repositories: D:\Projects\Engine\Engine Git failed with a fatal error. error: bad signature 0x00000000 fatal: index file corrupt)
I did this but it totally removed all of my history and put me back on just having to add a new source control git, but I want to be able to restore the history and not lose my history cause all old commit files are there and havent touched by anything for some time. How to resolve "Error: bad index – Fatal: index file corrupt" when using Git
rm -f .git/index
git reset
This deleted all of my history and started a new git. I had backups for my .git folder before I do this command so now it back to that error again.
After running command: ("git fsck") these are all errors: All git errors
(Please if possible for instant respond from me email me or message me in discord, cause I've tried a lot of things but they didnt work, then we can apply the final answer to the post. Thanks for helping me. shahroozleon01@gmail.com/SHAHROOZ#2185)