Git 与提交合并

示例

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

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