Skip to content

Rebase subtree onto new parent #127

Open
@srigi

Description

@srigi

Sometimes you made a mistake and want to attach couple of commits to another branch

aa -- bb -- cc -- dd -- ee
 \ -- ff -- gg
git rebase --onto NEW_BASE OLD_BASE
git rebase --onto gg cc
aa -- bb -- cc
 \ -- ff -- gg -- dd -- ee

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions