This branch cannot be rebased due to conflicts

This is the first time that I had to resolve a conflict in a PR. When I first tried to merge the PR, Github gave me the option to edit the conflict, which I chose to do. I thought that I made the edits correctly and went to close the PR. But I must have done something wrong. Now I have the message “This branch cannot be rebased due to conflicts” (see screen shot). But now I don’t see an option to edit the conflict. Is there a way to get back into the Github editor to edit the conflict? Also, can you tell from the screen shot, what I did wrong?

1 Like

Hm I don’t think you did anything wrong. 

I tried to reproduce this and I encountered the same message, so I think this is expected behaviour.

You couldn’t go back to the resolve conflict editor using the web UI because you had already resolved the conflict.

This Stackoverflow article explains why there are merge conflicts caused by rebase but not other methods, I guess this is also why we couldn’t do it via the GitHub web UI:

You should have been able to “create a merge commit” or “squash and merge”, but for “Rebase and merge”, it could only be done via command line:

I hope this helps!


Excited to learn more about here!

1 Like