Considering this commit:
https://github.com/tribbloid/spookystuff/commit/08650c3565a823fb1a696afd7f1461681293a1fe
If I run the following command:
peng@pop-os:~/git/spookystuff$ cat .gitmodules
[submodule "parent/showcase"]
path = parent/showcase
url = https://github.com/tribbloid/spookystuff-showcasepeng@pop-os:~/git/spookystuff$ git submodule sync
peng@pop-os:~/git/spookystuff$ git submodule update --init --remote --recursive
peng@pop-os:~/git/spookystuff$ git submodule status
peng@pop-os:~/git/spookystuff$ git submodule foreach git pull --rebase
peng@pop-os:~/git/spookystuff$ git submodule status
It can be seen that the number of submodule is still 0, contrary to the .gitmodule file
How did this happen? And what can be done to fix it?
.gitmodules
file, or usegit submodule add
to properly add a submodule? – Rankin.gitmodule
. I'm still looking for the right command to cherrypick.git/config
– Casiasgit submodule add https://github.com/tribbloid/spookystuff-showcase parent/showcase
. That works even if your .gitmodules exists already, but sets the according .git/config correctly. – Forest