Resolve Merge Conflict
Resolve a merge conflict
Open a new browser tab, and work on the steps in your second tab while you read the instructions in this tab.
At the bottom of the page, under "This branch has conflicts that must be resolved", click the Resolve conflicts button.
Look for the highlighted sections that begins with
<<<<<<< my-resumeand ends with>>>>>>> main. These markers are added by Git to show you the content that is in conflict.Remove the changes made on the main branch by deleting all of the content below the
=======and above>>>>>>> main.Next, remove the merge conflict markers by deleting the following lines:
<<<<<<< my-resume ======= >>>>>>> mainWith the merge conflict markers removed, click Mark as resolved.
Finally, click Commit merge.
Create your own conflict
We went ahead and added a new file called references.md and pushed that change to main, without updating your my-resume branch.
Browse to the
my-resumebranch.Click the
Add filedropdown menu and then onCreate new file.Create a file named
references.md.Enter some text that conflicts with what we added for
references.mdin themainbranch.Scroll to the bottom of the page and enter a commit message for your change.
Click the Commit new file button, making sure the "Commit directly to the
my-resumebranch" option is selected.
Merge your pull request
First, resolve any remaining conflicts in your pull request.
Look back at step one if you need help.
Click Merge pull request.
Delete the branch
my-resume(optional).
Last updated