Answer the question
In order to leave comments, you need to log in
GIT: how to copy (not merge!) branch from fork to original rap?
A little blunted, and fluent googling is silent:
There is a main rap github.com/foo/bar
, a fork was made from it github.com/baz/bar
. A baz/bar
branch fuz
based master
on foo/bar
. The task is to copy (and not merge with master
or any other) branch fuz
into rap foo/bar
.
Answer the question
In order to leave comments, you need to log in
# подключаете удалённый репозиторий к своему
git remote add baz https://github.com/baz/bar.git
git fetch baz
# переключаетесь на нужную ветку
git checkout baz/fuz
# и дальше ответвляетесь от неё
git checkout -b new_branch_name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question