git merge --no-ff feature-xyz

Category: Git - Core

git merge --no-ff feature-xyz

Merge creating a merge commit even if fast-forward possible

Forces a merge commit to be created even when a fast-forward would work — preserves the branch history.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.