I tried reverting to a previous git commit with:
git revert xxx
I\'m now receiving this error as a response:
fatal: bad object
Objects that don't exist in the repository give that error message
E.g.:
git init
touch a
git add a
git commit -m 0
# This object is not in the repository.
git show 1111111111111111111111111111111111111111
As for what causes the problem, it is hard to say without a minimal reproducible example.
Submodule woes have given me that error once.