Why conflicts happen
A conflict appears when the same stretch of a file is changed by two people at once. They're completely normal, every collaborator hits them, the experienced ones included, and they always have a clean resolution.
How to fix them
Read both sides. Keep whichever is correct, or stitch them together into a version that makes sense. Delete the markers, commit, and the conflict is gone from the history.