Cherry-pick in Git

From the Git cheat sheet · Branching · verified Jul 2026

Cherry-pick

Apply specific commits from another branch onto the current one

bash
# Apply a single commit
git cherry-pick <commit>

# Apply a range (exclusive..inclusive)
git cherry-pick <start>..<end>

# Apply without committing (stage only)
git cherry-pick -n <commit>

# After resolving conflicts
git cherry-pick --continue
git cherry-pick --abort
git cherry-pick --skip
💡 Cherry-pick copies a commit; it does not move it
⚡ Great for backporting fixes to release branches
⚠️ Creates a new commit with a different SHA than the source
✅ Use -x to leave a breadcrumb back to the original commit

More Git tasks

Back to the full Git cheat sheet