How to Resolve Conflicts in GitHub
Here’s how to resolve conflicts in GitHub:
- Go to your current repository with existing conflicts.
- Click on the numbers that you don't want to keep. Choose which changes to keep or combine them manually.
- 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.
- 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.
- After resolving conflicts and pushing the changes, it's always a good idea to test the functionality of your code to ensure everything works as expected.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it