git cherry-pick — Apply Specific Commits
git cherry-pick applies specific commits to the current branch as new commits. Pick one by hash, or a range with A..B. Note: it duplicates commits, which can complicate later rebases.
Open the interactive DevRef Hub tool →Key facts
| Single | git cherry-pick abc1234 |
|---|---|
| Range | git cherry-pick A..B |
| Merge commit | git cherry-pick -m 1 abc1234 |
| Resume | --continue / --abort |
Frequently asked questions
What does git cherry-pick do?
It applies the changes of chosen commits onto your current branch.
How to cherry-pick a range?
Use A..B to apply commits after A up to B.
Related pages
git cherry-pick is part of DevRef Hub on GOAT Lab — a free reference you can use without signing up, and it works offline. Open the tool above for any custom value.
Part of GOAT Lab — 26 free, browser-based science, engineering and developer tools. No sign-up.