Answer the question
In order to leave comments, you need to log in
How to import data from one Git repository to another Git repository?
Hello!
There is a hosting of Ansible roles (Galaxy), in order to put a role there, it must be placed in a dedicated repository on github. Let's say I already have N roles. Now I want to make a rap in which I want to collect all my roles in one place.
So, is it possible to implement such a scheme?
1) there are several per-role repositories.
2) there is a repository with the goal of combining all these roles + some more stuff.
3) I want the N* repositories to be part of the X repository in the form of the following file hierarchy:
roles/N1 -- N1 repositories
roles/N2 -- N2 repository
stuff/... -- here things that belong only to the X repository
4) if available new commits in the N repositories somehow pull these changes into the X repository.
Is this possible, and if so, how?
Answer the question
In order to leave comments, you need to log in
yes, look at git submodules
one sadness (purely IMHO) - the submodule is determined in the repository by the commit hash, changes in the submodule will not be automatically pulled by git pull, they will have to be updated via git submodules update and commit to X a new submodules hash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question