Merging: fast-forward
Lesson 11 of 24 · Git.Micro
When a branch is ready, you merge it into main. If main hasn't moved since the branch started, Git just slides main forward: a fast-forward.
Merge from the branch that receives the work: git switch main, then git merge about-page.
A fast-forward creates no new commit: the label just moves.
After merging, the old branch can go: git branch -d about-page.
Check yourself
When is a merge a fast-forward?
When the receiving branch hasn't moved since the other one started
The about-page branch is ready. Merge it into main.
main and about-page point at the same commit
Do it in the browser: a real Git tool, a short mission and instant feedback. No install.
Start this lesson — free