How to Solve Git submodule update error


When using git submodule update, an error is reported:

        fatal: Needed a single revision

        Unable to find current revision in submodule path 'test'


Git is incorrectly configured, or the code was downloaded from the sub module directory, but the association failed.


        rm -rf test/

Then go back to the root directory of the main module and use the command again:

        git submodule update --init

Read More: