Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Merge conflict » ?

Definition 9.8 University Computer Science — Year 1 · Chapitre 9 — Version Control with Git

A merge conflict arises when both sides of a three-way merge changed the same lines of a file differently since the merge base. Git then stops before committing, writes both versions into the file between the markers <<<<<<<, ======= and >>>>>>>, and waits for a person to write the right result, stage it with git add and commit.

A conflict. Each side changed line 2 of the merge base, in a different way; the lines that only one side changed, or neither, are merged without a question.
A conflict. Each side changed line 2 of the merge base, in a different way; the lines that only one side changed, or neither, are merged without a question.
Lire dans le chapitre →