Git rebase subtree
Suppose I have the following scenario: o (master) / o--o (WIP1) / / o--o--o--o--o--o (WIP2) (X) \ o--o (WIP3) Is there a git command which creates a new branch so that it contains the subtree after branch X? I want to perform a "large rebase", I want the three WIP branches rebased on master. I know I can do that with some Bash scripting but I'd like to know how to do that using a git command. There is no single git command for that. You will have to do some manual work. In your situation: o (master) / o--o (WIP1) / / X--o--o--B--o--o (WIP2) \ o--o (WIP3) You first rebase WIP1 onto master: git