I'm trying for last two days to resolve this error and tried all these below commands that i found on internet but nothing working for me.
git submodule update --init --recursive
git submodule sync
git submodule foreach --recursive git reset --hard
rm -rf JSONedit
git submodule update --init --recursive
But I'm always ending up with this below error
fatal: Unable to find current revision in submodule path "path to my submodule"
Can anyone please help me?
PS: I have been went through a lot of threads on stackover flow but nothing worked.
So, I manage to resolve this issue. The problem was with access permission. Submodule HEAD was referring to nonexistent branch. And because of my access permission I was not able to checkout to a commit. After getting permissions, Everything went well. Answer might be helpful for others having same trouble.