合併提交

預設行為是當合並解析為快進時,僅更新分支指標,而不建立合併提交。使用 --no-ff 解決。

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