D
D
Denis Pushkarev2016-09-01 20:51:31
git
Denis Pushkarev, 2016-09-01 20:51:31

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/barbranch fuzbased masteron foo/bar. The task is to copy (and not merge with masteror any other) branch fuzinto rap foo/bar.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sidorov, 2016-09-02
@rock

# подключаете удалённый репозиторий к своему
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 question

Ask a Question

731 491 924 answers to any question