git cherry-pick ایک specific commit کو ایک branch سے دوسری branch پر apply کرتا ہے — صرف اس commit کی تبدیلیاں کاپی کرتے ہوئے، بغیر پوری branch کو merge کیے۔ یہ خاص طور پر changes کو منتخب طریقے سے apply کرنے کے لیے مفید ہے، جیسے کہ fix کو backport کرنا۔
cherry-pick کیسے کام کرتا ہے
# 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
