Merge Conflict Practice
Practice resolving merge conflicts in a sample repository.
- Initialize a new repository and create a file:
- Create and switch to a new branch, make a change, and commit:
- Switch back to main, make a conflicting change, and commit:
- Try to merge the feature branch:
You should see a merge conflict. Open
file.txtand resolve the conflict, then run:
Merge conflicts are a normal part of collaboration. Practice resolving them!