-
Use the
--recursiveflag:git clone https://github.com/aikiframework/json.git --recursiveHowever if you cannot, as Github desktop app on clone does not use this flag, then do this after clone:
git submodule update --init -
You will not be able to do a
git pullbycding into the submodule directory. You will getYou are not currently on a branch.. To let it know you really are onmaster,cdinto each submodule directory and then:git checkout master
-
Remove the submodule entry from .git/config:
git submodule deinit path/to/submodule -
Delete the submodule directory from the superproject's
.git/modulesdirectoryrm -rf .git/modules/path/to/submodule -
Delete the submodule directory located at
path/to/submodulerm -rf path/to/submodule -
Remove the entry in
.gitmodulesfile BY HAND