git cherry-pick は、あるブランチから 特定のコミット を別のブランチに適用します。ブランチ全体をマージするのではなく、そのコミットの変更だけをコピーします。修正のバックポートなど、特定の変更を選択的に適用したいときに便利です。
cherry-pickの動作原理
# apply a specific commit from another branch onto the current branch
git cherry-pick <commit-hash>
# → creates a NEW commit on the current branch with that commit's changes
# (a copy — new hash, same changes)
git cherry-pick <commit1> <commit2>
git cherry-pick A..B
