Resolving Conflicts in a Pull Request
Scenario
Step 1: Understanding the Conflict
Step 2: Checking out the Branch Locally
git checkout main
git pull origin mainStep 3: Checking out the Pull Request Branch
git checkout <branch-name>Step 4: Resolving Conflicts
<<<<<<< HEAD
def calculate_sum(a, b):
return a + b
=======
def calculate_product(a, b):
return a * b
>>>>>>> feature-branchStep 5: Resolving the Conflict Marks
Step 6: Committing the Changes
Step 7: Pushing the Changes
Step 8: Updating the Pull Request
Step 9: Effective Communication and Collaboration
Last updated