Tefa
Tefa

Reputation: 346

How to move sub-branch to other parent branch?

I am working on a project using and .
The situation is that I should take a branch from develop branch but I forgot that and I took it from the master branch and did some commits.
Is there is a way to move this sub-branch from master to develop with this commits?
Thanks.

Upvotes: 1

Views: 741

Answers (1)

Ôrel
Ôrel

Reputation: 7662

 git rebase --onto develop origin/master yourbranch

origin/master should be the start of the branch to move

Upvotes: 2

Related Questions