Back to lessons
Cherry-Picking Commits
Selectively apply specific commits from one branch to another.
Step 1 of 617%
Cherry-picking lets you take a specific commit from one branch and apply it onto another. Unlike merge or rebase, you get exactly one commit — not the entire branch history.
Cherry-pick is the scalpel to merge's sledgehammer. While merging pulls in everything from a branch, cherry-pick lets you be surgical — you can pick a single bug fix from a development branch and apply it to your release branch without bringing along unfinished features. It's also invaluable for backporting fixes to older versions of your software.
1 / 6