Frequent questions about merge: how conflicts are computed, when to use
--no-ff, and what a "fast-forward" really is.
- How are conflicts computed?
Three-way: compare A, B and C. Conflicts appear only where A and B both changed the same line relative to C.
- When to use `--no-ff`?
For feature branches, always. It preserves the merge in history as a distinct event.
- What is a fast-forward?
When B has not moved since A branched, merging A into B just moves B's pointer. No merge commit.
- Merge vs rebase?
Merge preserves both histories, safe but noisy. Rebase rewrites one side onto the other, clean but destructive.