# Cherry-Pick

> One saved change, picked from a branch and added to yours.

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Cherry Pick

## Think of it like

Think of it like taking one cherry from a bowl. You get the one you want, not the whole bowl.

## Definition

A cherry-pick copies one chosen commit from another branch onto the branch you are on. You name the commit by its code, and Git applies just that change. The rest of the other branch is left alone. It is handy for moving a single urgent fix into the live code. The copied commit gets a new code of its own.

## Example

A typo fix sits on Emma's half-done branch. She cherry-picks just that commit onto main and ships it today.

## Example code

```console
$ git cherry-pick ddc2437
[main 68ba79c] Fix typo
 1 file changed, 1 insertion(+)
```

One commit is copied to main and gets a new code, 68ba79c.

## Why it matters

Sometimes one fix cannot wait for a whole branch to finish. A cherry-pick moves only that fix.

## Common mistake

Cherry-picking lots of commits instead of merging. The same change then sits twice in the history.

## Three principles

- **Just one commit.** Pick the change you need.
- **By its code.** Name the commit you want.
- **A new copy.** The copy gets its own code.

## Related terms

- [Commit](https://learn.benibix.com/term/development/commit)
- [Rebase](https://learn.benibix.com/term/development/rebase)
- [Merge](https://learn.benibix.com/term/development/merge)
- [Branch](https://learn.benibix.com/term/development/branch)

## Taught in

- [Git Rebase and Cherry-Pick](https://learn.benibix.com/learn/development-version-control/git-rebase-and-cherry-pick): Git and GitHub, 6/13

---

Source: https://learn.benibix.com/term/development/cherry-pick
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
