Home > Back-end >  GitHub Merge pull request conflicts
GitHub Merge pull request conflicts

Time:11-08

I created a pull request and I tried to Merge it but now this pops up: enter image description here

When I click Resolve conflicts this comes up: enter image description here

What can I do to merge this pull request. Here is the link to the repo: enter image description here

Tip: If the Resolve conflicts button is deactivated, your pull request's merge conflict is too complex to resolve on GitHub. You must resolve the merge conflict using an alternative Git client, or by using Git on the command line. For more information see "enter image description here

4.If you have more than one merge conflict in your file, scroll down to the next set of conflict markers and repeat steps four and five to resolve your merge conflict.

5.Once you've resolved all the conflicts in the file, click Mark as resolved. enter image description here

6.If you have more than one file with a conflict, select the next file you want to edit on the left side of the page under "conflicting files" and repeat steps four through seven until you've resolved all of your pull request's merge conflicts. enter image description here

7.Once you've resolved all your merge conflicts, click Commit merge. This merges the entire base branch into your head branch.

enter image description here

8.If prompted, review the branch that you are committing to.

If the head branch is the default branch of the repository, you can choose either to update this branch with the changes you made to resolve the conflict, or to create a new branch and use this as the head branch of the pull request. enter image description here

If you choose to create a new branch, enter a name for the branch.

If the head branch of your pull request is protected you must create a new branch. You won't get the option to update the protected branch.

Click Create branch and update my pull request or I understand, continue updating BRANCH. The button text corresponds to the action you are performing.

9.To merge your pull request, click Merge pull request. For more information about other pull request merge options, see "Merging a pull request."

  • Related