LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt

How to Resolve Merge Conflicts in GitHub


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

  1. Go to your current repository with existing conflicts.

  2. 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.

  3. This file also has a conflict but you can just uncheck the file and click on the 'Discharge Changes' option.

  4. Click on the 'Discard Changes' button.

  5. Once you're done, click 'Commit to master'.

  6. Click on the changed file and click 'Discard Changes'.

  7. Click on the 'Discard Changes' button.

  8. Click on the 'Push origin' to save the changes.

  9. Click 'Open this repository'.

  10. Open the file and check everything.

  11. 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.

LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt
🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free→