Git revision setup failed

Whenever I execute git status , I get this output:

error: Failed to read da1e8fd9f8afb20331f685b5c9448bd452658332 fatal: unable to configure walk verification

I have no idea when it started, and I don't see this commit on github.

+8
source share
2 answers

For me, one of the git objects was corrupted (probably after one system crash). To identify problems at the beginning of the git-fsck repo ( https://git-scm.com/docs/git-fsck ), this will show problems with the object tree in your repository.

Unfortunately, I do not know how easy it is to fix it. For my part, the easiest way is to clone the original repo to some temporary place, and then completely replace (delete the old, add a new) .git directory in my damaged one.

, but be careful: you will lose your local unset commits (but the working tree will still be beautiful, so it will look after git reset --mixed ), index, local repository configuration, stashes. You can probably try replacing (itโ€™s better to completely remove and add) only the .git/objects directory, in which case you can save your index and local configuration (but not pressed changes and entries).

+2
source

I had to delete my project and clone the repository again .

PS: This could be due to the fact that I copied about 20 repositories from the old laptop to the new one. All other repositories work (for now).

0
source

All Articles