Bird
0
0

You get a merge conflict when creating a pull request. What should you do next?

medium📝 Troubleshoot Q7 of 15
Git - Collaboration Workflows
You get a merge conflict when creating a pull request. What should you do next?
AFetch upstream changes and merge them locally to resolve conflicts
BDelete your fork and start over
CForce push your branch to overwrite original repo
DIgnore the conflict and create the pull request anyway
Step-by-Step Solution
Solution:
  1. Step 1: Fetch upstream changes

    Get the latest code from the original repository to your local machine.
  2. Step 2: Merge and resolve conflicts locally

    Fix conflicts in your code, then commit the resolved changes.
  3. Final Answer:

    Fetch upstream changes and merge them locally to resolve conflicts -> Option A
  4. Quick Check:

    Resolve conflicts locally before PR [OK]
Quick Trick: Always merge upstream changes to fix conflicts [OK]
Common Mistakes:
  • Force pushing without resolving conflicts
  • Ignoring conflicts
  • Deleting fork unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes