The submodules use SSH URLs (git@github.com:...).
git clone --recurse-submodules git@github.com:deuskane/asylum-project.gitClone over HTTPS. Git rewrites the submodule URLs to HTTPS, but only for this command:
git -c url."https://github.com/".insteadOf="git@github.com:" \
clone --recurse-submodules https://github.com/deuskane/asylum-project.gitTo make the rewrite permanent, so later git submodule update and git pull also go over HTTPS:
git config --global url."https://github.com/".insteadOf "git@github.com:"Note: pushing over HTTPS requires a GitHub personal access token instead of an SSH key.
git submodule update --init --recursive