git cherry-pick يطبّق commit محدد من فرع على آخر — وينسخ فقط التغييرات من ذلك الـ commit، بدون دمج الفرع بأكمله. وهو مفيد لتطبيق تغييرات معينة بشكل انتقائي، مثل نقل إصلاح إلى إصدارة سابقة.
كيف يعمل 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
git cherry-pick <commit1> <commit2>
git cherry-pick A..B
