Sobes.tech
Senior

What is cherry-pick in Git?

sobes.tech AI

Answer from AI

In Git, the cherry-pick command allows you to select one or more specific commits from one branch and apply them to another branch. This is useful when you want to transfer individual changes without merging the entire branch.

Example usage:

git checkout feature-branch
# apply commit with hash abc123 from another branch
 git cherry-pick abc123

Thus, cherry-pick copies the changes, preserving history, but does not merge branches entirely.

What is cherry-pick in Git? — Frontend - sobes.tech