Git · Branches and integration
git merge
Integrates another branch. A no-fast-forward merge keeps a visible merge commit.
Syntax
git merge --no-ff <branch>Example
Example
git switch main git merge --no-ff feature/auth
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.