Cherry-picking Commits
Understand how to selectively apply individual commits from one branch onto another using `git cherry-pick`.
Selectively Moving Commits
What if you only need one specific change from a branch, not the whole branch? git cherry-pick lets you apply a single commit from anywhere in your repository's history directly onto your current branch.
It's like picking a single cherry from a tree! This creates a brand new commit on your current branch that duplicates the changes of the original.
When to Use Cherry-Pick
Imagine you're working on a big feature branch, and you discover a critical bug fix you made there is also needed on your main production branch right now. You don't want to merge the entire feature branch yet.
This is a perfect scenario for cherry-pick. It helps you port isolated changes without bringing over unrelated work.