合并提交

默认行为是当合并解析为快进时,仅更新分支指针,而不创建合并提交。使用 --no-ff 解决。

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