When resolving a merge conflict in Git, what approach would you take to ensure the integrity of the codebase?

  • Choose one side's changes without review
  • Merge conflicting changes manually
  • Discard conflicting changes
  • Always accept remote changes
The correct option is b) Merge conflicting changes manually. This approach involves carefully reviewing and selecting the changes from both sides to create a resolution that maintains code integrity. Options a, c, and d may lead to loss of important code or introduce errors.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *