| 用途 | 在提交前检查合并结果 |
|---|---|
| 语法 | git merge --no-commit --no-ff <分支> |
| 后续动作 | git commit 或 git merge --abort |
常用示例
常用示例
git merge --no-commit --no-ff feature/theme
git diff --cached --stat
git status
git commit -m 'Merge feature/theme'快进场景下 --no-commit 会隐式带上 --no-ff 语义才能停下;核对无误后务必显式提交,否则 MERGE_HEAD 状态会留在仓库里。