Bird
0
0

After running git cherry-pick 9f8e7d6, you encounter a conflict error. What is the recommended next step?

medium📝 Troubleshoot Q6 of 15
Git - Cherry-Pick and Advanced Merging
After running git cherry-pick 9f8e7d6, you encounter a conflict error. What is the recommended next step?
AReset the branch to the previous commit with <code>git reset --hard</code>
BAbort the cherry-pick with <code>git cherry-pick --abort</code> and try again
CManually resolve the conflicts, then run <code>git cherry-pick --continue</code>
DIgnore the conflict and commit anyway
Step-by-Step Solution
Solution:
  1. Step 1: Understand conflict during cherry-pick

    Conflicts require manual resolution.
  2. Step 2: Use proper commands

    After resolving conflicts, git cherry-pick --continue resumes the process.
  3. Final Answer:

    Manually resolve the conflicts, then run git cherry-pick --continue -> Option C
  4. Quick Check:

    Resolve conflicts before continuing cherry-pick [OK]
Quick Trick: Fix conflicts, then run 'git cherry-pick --continue' [OK]
Common Mistakes:
  • Aborting without trying to resolve conflicts
  • Resetting branch unnecessarily
  • Committing without resolving conflicts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes