However, this type of a git merge is not possible if neither branch corresponds to the original branch. So if you split off a secondary branch to work on it, and the main branch is also changed in the meantime, you will have to perform a three-way merge. The “three” comes from the three commits: main branch, secondary branch, and the edited original branch. The following example illustrates a Git merge with three starting points:

Similar Posts