Merge conflict
Definition
A merge conflict occurs when version control cannot automatically combine competing changes into a single version.
When a conflict occurs, Git stops automatic merging at affected points. A person must decide which content to keep or combine. Then the resolved files are committed and the process completed. Conflicts can also occur outside classic merges.
Simply explained
Two versions contradict each other at one point, and you must decide how the combined version proceeds.
Why it matters in practice
Conscious handling of conflicts prevents changes from accidentally disappearing or inappropriate combinations from being adopted.
Example from business
Possible example: Two branches change the same form text differently; the responsible person creates the coordinated final version from this.
Limits and pitfalls
- Simply adopting a page can discard important changes. After removing conflict markers, content and affected functions must be checked.
Origin & history
Merge conflicts arise from parallel changed versions; Git marks cases that its merge rules cannot resolve unambiguously.
Use in mid-sized companies
- Teams can clarify responsibilities for conflict resolution and keep larger parallel changes manageable through frequent coordination.
Frequently asked questions
Is a conflict lost data?
Not automatically. It initially indicates that a decision for the merge is required.
Sources
- git-merge. · Git-Projekt (o. J.): git-merge.
Editorially reviewed on: