how does exactly a git merge conflict happen?
I have made a git repository and added a text file to it. This is 100% for learning purpose. I added "1" to the text file and committed it to master. Created a new branch from master and appended "2". Finally, created a branch from master and appended "3". Could you please explain how a conflict may occur in this, or any other, scenario? VonC You will have a conflict if you merge: branch2 to master (no conflict) branch3 to master (conflict): That is because: The common ancestor would be master (with a second line empty) the source content is branch3 (with a second line including "3") the