How to Resolve Merge Conflicts in GitHub
- George Apostolov
- 05 Sep 2025
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.
Create your first interactive demo in minutes
No credit card required • Start building today


