I created a submodule to display the code i did for my class (lesson class not code class) in my github website.
The first class I did was learn to program HTML, so i made a repository for it. Then I created a submodule to link the code with the site. This worked well. Then I started the next class, CSS.
Then I thought instead of several repositories (and submodules) that I would group all my classes under one repository. The problem is that when I created the submodule it took a name from somewhere, I never explicitly specified one. It took the name "ltp-html5-authoring" and appends it before everything. It doesnt look too bad for the link to the first class, ltp-html5-authoring/ltp-html5-authoring/ltp-html5-authoring.html but is downright wrong with the second one. ltp-html5-authoring/ltp-css3-specialist/ltp-css3-specialist.html And will continue to be wrong as I add folders.
Is there any way to rename the submodule or do I have to remove it and re-add it?
git mv
Does not work because the name of the submodule does not exist as part of any folder. The name is prefixed to the url of the submodule so it becomes
I issued:
C:\Code\site>git submodule foreach -q git config remote.origin.url
https://github.com/Marvelous-Software/ltp-html5-authoring.git
I tried:
C:\Code\site>git submodule set-url ltp-html5-authoring https://github.com/Marvelous-Software/Frameworktv.git
and
C:\Code\site>git submodule set-url https://github.com/Marvelous-Software/ltp-html5-authoring https://github.com/Marvelous-Software/Frameworktv
Although I didn't expect that to work since the parameter set-url is not what I want to do and it did not work anyway.
Where the path is https://github.com/Marvelous-Software/Frameworktv.git And the path to a landing page is https://marvelous-software.github.io/school/ltp-html5-authoring/ltp-html5-authoring/ltp-html5-authoring.html whish is