after creating a git submodule by typing
git submodule add <repo> && git submodule init
my .git/config is changed, as well as a new file .gitmodules is created. It seems that I would be able to move my submodule to a specific folder within, as well as outside the repository:
$ cat gitmodules
[submodule "sub_repo"]
path = sub_repo
url = <...>
But when I try to move my repository to my parent folder and change my .gitmodules
path = ../sub_repo
it seems to ignore that module on 'git update' or 'git submodule foreach'.
What is my error in reasoning here?
Thanks a lot!