Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"This branch has conflicts that must be resolved" but it's already merged

I merged a PR with the GitHub web interface, which resolved in a successful merge commit.

Afterwards, GitHub is complaining This branch has conflicts that must be resolved. Does anybody know why or how to get the status merged?

like image 245
Daniel Avatar asked Jun 20 '19 10:06

Daniel


People also ask

How do you resolve branch has conflicts that must be resolved?

You'll need to update your branch with new commits from master, resolve those conflicts and push the updated/resolved branch to GitHub.

What happens if you get a conflict during a merge?

Merge conflicts happen when you merge branches that have competing commits, and Git needs your help to decide which changes to incorporate in the final merge. Git can often resolve differences between branches and merge them automatically.

What to do after merge conflict is resolved?

merge : add ' --continue ' option as a synonym for ' git commit ' Teach ' git merge ' the --continue option which allows 'continuing' a merge by completing it. The traditional way of completing a merge after resolving conflicts is to use ' git commit '.


1 Answers

You'll need to update your branch with new commits from master, resolve those conflicts and push the updated/resolved branch to GitHub.

git checkout master
git pull
git checkout <branch>
git merge master
[ ... resolve any conflicts ... ]
git add [files that were conflicted]
git commit
git push
like image 57
Smbat Poghosyan Avatar answered Nov 03 '22 11:11

Smbat Poghosyan