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 条相关命令,见本页上方「相关命令」。

同类工具