git clone -recurse-submodules [URL to Git repo]
git submodule update --remote
fetches new commits in the submodules, and updates the working tree to the commit described by the branch
git switch <branch_name>
git submodule add -b main [URL to Git repo]
git submodule init
git submodule foreach 'git reset --hard'