git cherry-pick menerapkan commit tertentu dari satu branch ke branch lain — menyalin hanya perubahan commit itu, tanpa merge seluruh branch. Ini berguna untuk menerapkan perubahan tertentu secara selektif, seperti backporting sebuah fix.
Cara cherry-pick bekerja
# 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
