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
git cherry-pick <commit1> <commit2>
git cherry-pick A..B
