1 min read 63 words Updated Sep 24, 2026 Created Sep 24, 2026
#git

git cherry-pick <commit> takes the changes introduced by a single commit (its "diff") and re-applies them as a new commit on your current branch.

The key insight: it does not copy the commit itself. It creates a brand-new commit with a different hash that contains the same changes.

When merging the branch the commit is cherry-picked from, git usually does not reapply it.