K
K
Kotaro Hiba2019-12-15 22:35:54
git
Kotaro Hiba, 2019-12-15 22:35:54

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

2 answer(s)
V
Vladimir Korotenko, 2019-12-15
@firedragon

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%...

A
Alexander Bogushov, 2020-01-17
@abogushov

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 question

Ask a Question

731 491 924 answers to any question