No Fast-Forward Fill
Fill in the Blank Medium
Question
Fill in the blank to always create a merge commit, even if a fast-forward is possible.
Code
git merge ___ feature
Hint
The flag to prevent fast-forward starts with --no-ff.
Explanation
--no-ff (no fast-forward) forces Git to create a merge commit even when a fast-forward merge is possible. This preserves the branch topology, making it clear which commits were part of a feature branch. Many teams prefer --no-ff for feature-branch merges to keep history informative.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.