What does git cherry-pick do?
⚡
Quick Answer
It applies the changes from a specific commit onto the current branch as a new commit.
Detailed Answer
cherry-pick <sha> copies one commit's diff to your branch — useful for backporting a fix to a release branch without merging everything. It creates a new commit with a new SHA. Conflicts are resolved like a merge; --continue/--abort control the process.
💡
Interview Tip
Backporting a hotfix is the canonical use case.
gitcherry-pickbackport