Introduction
When two people change the same part of a file in different ways, Git cannot decide which change to keep. This is called a merge conflict. You need to fix these conflicts manually to combine the changes.
When you try to merge a feature branch into the main branch and both have changed the same lines in a file.
When you pull changes from a remote repository and your local changes conflict with the incoming ones.
When you rebase your branch onto another branch and conflicts appear in the process.
When multiple team members edit the same file and push their changes at different times.
When you want to combine changes from two branches but Git cannot automatically merge them.