Once you've finished work on a child branch and want to merge it into its parent, you might want to do a fast-forward merge to keep the history linear.
When you are on a parent branch (e.g., develop),
and you want to fast-forward it to its child branch, run:
git machete advance- Checks whether the current branch has exactly one child branch.
- If there are multiple children, prompts you to choose one.
- Fast-forwards the current branch to the selected child.
- Optionally pushes the parent branch to the remote.
- Optionally slides out the child branch from the layout (since its commits are now part of the parent).
Before git machete advance:
Check out develop and run git machete advance and confirm the suggested actions:
After git machete advance:
The call-ws branch is now merged into develop and removed from the machete layout.
< Previous: Automating workflow with traverse | Next: Cleaning up with slide-out >

