How to Resolve Merge Conflicts in GitHub
- George Apostolov
This guide is an interactive LiveDemo. Create interactive demos of your own product: Interactive demo software · Interactive customer onboarding guides · Start free
How to Resolve Merge Conflicts in GitHub: step-by-step guide
Go to your current repository with existing conflicts.
Click on the numbers that you don't want to keep. Remember green colors are numbers that will be deleted and the blue colors are the numbers that will remain.
This file also has a conflict but you can just uncheck the file and click on the 'Discharge Changes' option.
Click on the 'Discard Changes' button.
Once you're done, click 'Commit to master'.
Click on the changed file and click 'Discard Changes'.
Click on the 'Discard Changes' button.
Click on the 'Push origin' to save the changes.
Click 'Open this repository'.
Open the file and check everything.
That's it! By following these steps, you can resolve merge conflicts in GitHub.
Quick answer: To resolve merge conflicts in GitHub, go to your repository, manage conflicting numbers and files by discarding changes, commit to the master branch, push the origin, and open the repository file to check everything.
About this GitHub tutorial
Fix merge conflicts in GitHub by discarding unwanted changes, committing to master, pushing the origin, and verifying your repository files. This guide shows how to resolve Merge Conflicts in GitHub in 11 steps, starting with "Go to your current repository with existing conflicts" and finishing with "That's it! By following these steps, you can resolve merge conflicts in GitHub". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to resolve Merge Conflicts in GitHub?
11 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under GitHub. Related guides: How to Restore Deleted Branch in Github, How to Revert a Commit in Github and How to Revert a Pull Request in Github. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





