Workflows
Backporting with Cherry-pick
Backport precise fixes onto maintenance branches without merging an entire feature branch.
Scenario
Backport precise fixes onto maintenance branches without merging an entire feature branch.
Suggested sequence
- Identify the exact commit to backport
- Switch to the maintenance branch and cherry-pick
- Validate the resulting diff and tests
Why this order is safer
The value of a workflow usually comes less from a single command and more from fixing the order of observation, action, and recovery.
Related commands
This topic makes more sense alongside commands such as git fetch, git log, git diff, git merge, git rebase, or git cherry-pick.