View on GitHub

git-notes

A brief introduction and tutorial on Git, GitHub, and Terminal

Resolving Merge Conflicts

You must resolve all merge conflicts before you can merge a pull request on GitHub. If you have a merge conflict between the compare branch and base branch in your pull request, you can view a list of the files with conflicting changes above the Merge pull request button. The Merge pull request button is deactivated until you’ve resolved all conflicts between the compare branch and base branch.

To resolve a merge conflict, you must manually edit the conflicted file to select the changes that you want to keep in the final merge. There are a couple of different ways to resolve a merge conflict:

Resolving a merge conflict on GitHub

  1. Merge the new branch to master

    $ git merge new_branch

Below terminal ouput shows the resut of the merge