Introduction
When two people change the same part of a file in Git, a conflict happens. You must choose which change to keep: yours or the other person's. This helps keep your project working smoothly.
When you pull changes from a shared repository and Git cannot merge automatically.
When you merge a feature branch into the main branch and both changed the same lines.
When you rebase your branch onto another branch and conflicts appear.
When you want to decide quickly which version of a file to keep during a conflict.
When you want to avoid manually editing conflict markers in files.