Git Tips Slides
PageUp x2: previous · PageDown x2: next · Home: index

Chain of branches: Add base branch to name of second branch

Sometimes you create a chain or train of branches. The first branch is still in review, but you start to work on the next items in a second branch.

This gets confusing if you have several branches in this chain.

To make things easier to understand, I sometimes add the base branch name to the name of the second branch.

First branch: foo

Then I call the second branch: name-of-second-branch--based-on-foo.

The third would be: name-of-third-branch--based-on-name-of-second-branch.

And so on.