Cherry-pick
A Git operation that applies a specific commit's changes to another branch without merging the entire branch.
Cherry-pick takes an existing commit from one branch (often main or a feature branch) and applies only its diff to the current branch. It creates a new commit with the same message and changes, but with a new hash and a parent pointing to your current branch. It's useful for hotfix scenarios — you need a security fix on the release branch without pulling in incomplete feature work.
Cherry-pick is powerful but easy to misuse. It breaks the linear history that rebase respects, so many teams prefer merge or rebase for larger changes and reserve cherry-pick for small, well-justified cherry-picks.