Git - Cherry-Pick and Advanced Merging
You tried to cherry-pick multiple commits but accidentally included a merge commit. What is the best way to avoid conflicts caused by this?
Merge commits require specifying a parent with -m to resolve which side to apply.
Using git cherry-pick -m 1 <merge-commit-hash> tells git which parent to use, reducing conflicts.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions