🔀Fast-Forward Merge
Also known as Fast Forward, Fast-Forward, ff-only
A merge where Git just slides the branch forward. No merge commit is made.
Think of it like
Think of it like catching up on a book. You just turn ahead to the page your friend reached.
Example
Nobody touched main while Emma worked. Her merge is a fast-forward, and main now points at her last commit.
Why it matters
It keeps history in a straight line that is easy to read.
Definition
Example code
console
$ git merge --ff-only add-dark-mode
Updating 4c5d6e7..9f8e7d6
Fast-forward
style.css | 4 ++++
1 file changed, 4 insertions(+)