Introduction
When two people change the same part of a file in different ways, Git cannot decide which change to keep. It marks the file with conflict markers so you can see both versions and fix the conflict.
When you pull changes from a shared repository and your local file has conflicting edits.
When you merge two branches that changed the same lines differently.
When you rebase your branch onto another branch and conflicts appear.
When you cherry-pick a commit that conflicts with your current code.
When you resolve conflicts manually before completing a merge or rebase.