O
O
orbit0702019-09-21 12:55:24
git
orbit070, 2019-09-21 12:55:24

How to change the parent branch?

There are main and develop branches. It was necessary to implement a new feature in a branch derived from develop, that is, develop-> ficha, and I accidentally created the ficha branch while in the main branch, that is, it turned out main-> ficha. How to change parent of ficha branch to get develop->ficha?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-09-21
@Zarom

Not anymore.
If there are no changes in the branch - just delete and create again.
Otherwise, create a new correct branch and cherry-pick your commits there.
Well, or, finally, forget it and just spool into this develop branch.
PS Perhaps you can still do a rebase, but I won’t instruct you offhand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question