From: Erik Claij Date: Tue, 30 Mar 2021 09:09:55 GMT Subject: git submodule problem Message-ID: Dear git, Changing branch with     git checkout --recurse-submodules does not work when the branch does contain a new submodule. Cloning a repo without submodules in master but submodules in the will reproduce this problem. Error     fatal: not a git repository: ../../.git/modules/module/esp32_peripherals     fatal: could not reset submodule index The alternative way does work     git checkout     git submodule update --init --recurse     git clean -ffd Best, Erik Claij