I have a number of git repositories at school that I want to manage & share at once, so that I can work on them at home too.
But I don't want to create remote repos for each of those repositories.
Folder structure:
-- basefolder
| - project1 (repo)
| - project2 (repo)
| - project3 (repo)
...
What I want is to have single repo (basefolder) that contains each of the 'subrepos'. As if I'd copied the folder (basefolder) using usb/dropbox etc.
I thought submodules were the way to go, and I researched submodules, and created sample repositores to try it out.
I created submodules with relative paths, but cloning the 'superproject' then submodule init && submodule update
doesn't get me the files from the submodules. The urls are local & don't exist on a different machine.
Having remote repos for each 'sub-repo' (project 1~) would make this work, but as I stated above I don't want to create separate repos for each project.`
I also know that I can concatenate them into one repo (basefolder), but I'd like to keep the histories of each project separate.