git merge --no-ff <branch> 命令详解

禁用快进,保留合并提交

命令语法

git merge --no-ff <branch>

禁用快进,保留合并提交

示例

$ git merge --no-ff feature/login

git merge --no-ff <branch> 用法说明

git merge --no-ff <branch> 是「合并与变基」分类下的常用命令,作用是:禁用快进,保留合并提交。

典型用法如下:git merge --no-ff feature/login。你可以复制到终端直接运行,或查看下方同组的相关命令。

常见问题解答

git merge --no-ff <branch> 是什么?
git merge --no-ff <branch> 用于禁用快进,保留合并提交,属于「合并与变基」相关命令。
git merge --no-ff <branch> 怎么用?
在终端执行 git merge --no-ff feature/login 即可,具体参数请按实际环境调整。
还有哪些相关命令?
「合并与变基」分类下还有 11 条相关命令,见下方「相关命令」。