git submodules are erroneous

less than 1 minute read

Published:

In the name of sheer simplicity, it would be advised to best not use the git submodule utility ! If there is the utmost need to have one directory within the other, then try to have only git repository among them, yeah. Or else, try to separate out the repositories into separate folders, yah !

It may happen that you may not be able to see new changes in the main directory after using submodule for a while. In this case, use the following to bring back things to the original:

git submodule deinit -f .
git submodule update --init

See : url-1 and url-2 for checking out problems with new changes not showing up on git. See also url-3 and url-4 on removing an unwanted git-submodule.