Answer the question
In order to leave comments, you need to log in
How to push to two repositories?
The crux of the matter is, there is one project, it needs to be uploaded to two repositories, but the entire project should be uploaded to the first repository, and only certain folders from this project should be uploaded to the second one, it’s possible to do this, please tell me, I’m new to the git, I don’t know what to build on.
Answer the question
In order to leave comments, you need to log in
The git is, as it were, atomic, any is self-sufficient and can be synchronized with any of its other repositories.
As for the separation, look at this part of the documentation
https://git-scm.com/book/ru/v2/%D0%98%D0%BD%D1%81%...
I see two options:
1) Move "certain folders" to another repository and use git submodule.
2) Upload "certain folders" to a separate branch and push only this branch to the second repository. Also merge the branch with folders into the first repository.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question