How to Resolve Merge Conflicts in GitHub
To resolve merge Conflicts in GitHub, follow these steps:
- 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.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it