Quick summary
This demo walks you through how to resolve merge conflicts in GitHub Desktop by choosing which changes to keep, discarding unwanted edits, and pushing a clean commit to your repository. It covers the full conflict resolution workflow from opening a conflicted repository to verifying and pushing the final changes.
Steps
- Go to your current repository with existing conflicts.
- Click on the conflicting line numbers you don't want to keep — choose which changes to keep or combine them manually.
- For a file with a conflict you want to remove entirely, uncheck the file and click the Discard Changes option.
- Click the Discard Changes button to confirm removal of the unwanted file changes.
- Click Commit to master to save your resolved conflict as a new commit.
- Click the changed file and select Discard Changes to remove any remaining unwanted edits.
- Click the Discard Changes button again to finalize the removal.
- Click Push origin to upload and save all resolved changes to the remote repository.
- Click Open this repository to verify the resolved state in your file browser.
- Open the file and check everything to confirm the conflict resolution is complete.
- After resolving conflicts and pushing changes, test the functionality of your code to ensure everything works as expected.
.gif)



