I created a project submodule
and put it up on Github.
I created another project, supermodule
, and then did this:
cd supermodule
git init
mkdir lib
git clone git://github.com/tandu/submodule lib/submodule
git submodule add ./lib/submodule lib/submodule
This worked fine, but on the website, it can't find the link to the submodule when viewing the files (in fact it just says "Loading Commit data" forever). The submodule folder itself has the correct origin
.
Apparently, what I should have done was
...
mkdir lib
git submodule add git://github.com/tandu/submodule lib
...but it's too late for that now. How can I have the submodule in this project correctly point to origin
?
git submodule sync --recursive
was enough for me to update to submoduleorigin
remote. – Laborer