A
A
Aleksandr2017-08-16 09:07:02
git
Aleksandr, 2017-08-16 09:07:02

How to push to multiple repositories to the desired branch?

There is a project that I push to my branch, which comes from the dev branch.
I also want to push a project to my personal repository.
Found commands:

git remote add "all" название исходного репо

git remote set-url --add --push "all" "название 1 репо"
git remote set-url --add --push "all" "название 2 репо"

So the question is, if for example I need code to be pushed into the second repo into my branch, which comes from the dev branch, how can I do this correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question