I am trying to transfer my cvs repository to git and am stuck with this last issue for a while.
I am currently using CVS ampersand modules for code sharing between projects. This allows you to basically “alias” another repository as a subdirectory in your project, so you can update / copy the entire project and include remote repositories as if it were a single repository.
I have seen threads that recommend using subtrees or submodules for this, referencing (svn: externals). This will not work because:
merging subtrees does not seem to allow you to easily return / update external repositories.
Submodules still require you to manually push / pull each submodule. I have a large number of submodules, and to enter into each of them to push my changes would be tiring and could lead to omissions, since they would forget to make changes.
Just to be clear, I would like to have a git repository that contains other git repositories as subdirectories, and be able to commit / push / pull all of them at once with a single command.
source
share