एडवांस्ड Git
Amanda Crawford-Adamo
Software and Data Engineer
किसी विशेष commit के बदलावों को दूसरी branch पर लागू करता है
एकल Commit को Cherry-Pick करें
git cherry-pick <commit-hash>
एक से अधिक Commits को Cherry-Pick करें
git cherry-pick <hash1> <hash2> ..
उद्देश्य


main branch चेकआउट करें
git checkout main
feature branch से commit def456 के बदलाव लाने के लिए cherry-pick चलाएँ।
git cherry-pick def456

git add <resolved-files>--continue फ्लैग चलाकर cherry-pick जारी रखेंgit cherry-pick --continue
Cherry-pick ऑपरेशन रोकने के लिए --abort फ्लैग उपयोग करें
git cherry-pick --abort
एडवांस्ड Git