I have a git repository (test-dev
) and several dependent git repositories (they are originally managed using composer). Lets call them module-1
, module-2
I copied the main git repository to a new location / name (test-deploy
) and now want to include those other repositories directly into the new repository.
So I copied the contents of those module repositories into the new test-deploy
one.
Now I had some .git files in those subdirectories which I removed. Also the .gitignore files of the sub repositories.
Now I can not add those files anymore to the parent-git.
How can I trace this problem?
EDIT (Clarification):
I only want one single .git
- I also do not want to have any gitmodules or something like that.
The final repository should be completely self-contained.
EDIT
From the root of test-deploy
:
$ git status ... nothing to commit (working directory clean) $ git submodule No submodule mapping found in .gitmodules for path 'vendor/foo/foo_bar'