Git Merge with a commit


Example

Default behaviour is when the merge resolves as a fast-forward, only update the branch pointer, without creating a merge commit. Use --no-ff to resolve.

git merge <branch_name> --no-ff -m "<commit message>"