git cherry-pick soveltaa tiettyä committia yhdeltä haaralta toiselle — kopioi vain kyseisen commitin muutokset ilman koko haaran yhdistämistä. Se on hyödyllinen muutosten valikoivaan soveltamiseen, kuten korjauksen takaisinsiirrossa.
Kuinka cherry-pick toimii
# apply a specific commit from another branch onto the current branch
git cherry-pick <commit-hash>
git cherry-pick <commit1> <commit2>
git cherry-pick A..B
