QamoosTech
Git & CollaborationIntermediate

Cherry-pick

PronunciationCHEHR-ee pik

Definition

Applying a specific commit from one branch to another without merging the whole branch.

Where you hear it

In git workflows, when fixing a bug on a release branch and needing to bring that fix into the main development branch.

Examples

  • We need to cherry-pick that bug fix commit into the release branch.
  • I used cherry-pick to grab just the latest feature update without the other experimental changes.
  • We cherry-picked the security fix onto the release branch.

Common mistake

Thinking cherry-picking replaces merging entirely, which leads to duplicate commits and complicated history if overused.

Don't confuse with

Cherry-pick applies a single specific commit to another branch, whereas merge combines all commits from an entire branch.

Say it at work

  • In a meeting or chatCould you please cherry-pick this urgent patch into the production branch?
  • In an email or ticketI have cherry-picked the fix into the staging branch to verify it works correctly.