git cherry-pick <commit>
Copies a single commit from another branch
Creates a new commit with same changes
Does not merge full branch history
Useful to pick specific fixes or features
Full Transcript
Cherry-pick lets you copy one commit from a branch to another without merging everything. You start on branchA and make a commit X. Then you switch to branchB and run cherry-pick with commit X's ID. This adds a new commit X' to branchB with the same changes. Both branches now have commit X independently. Cherry-pick creates a new commit ID because it applies the changes fresh on the target branch. It is useful when you want just one fix or feature from another branch without merging all its changes.