Does the order of Git merging matter?
问题 Suppose I have two branches, A and B . Do the following properties hold? Merging A into B conflicts if and only if merging B into A conflicts. The contents of my files after merging A into B is the same as the contents of my files after merging B into A . 回答1: cmaster's answer is correct, with caveats. Let's start by noting these items / assumptions: There is always a single merge base commit. Let's call this commit B , for base. The other two inputs are also single commits. Let's call them L