I have a branch of a public repository and I am trying to update my branch with the current commits from the original repository:
$ git fetch
git submodule deinit --all -f worked for me.
git submodule deinit --all -f