如何将 merge "No Fast Forward" 设置为 TortoiseGit 中的默认值?

How can I set merge "No Fast Forward" as the default in TortoiseGit?

我在工作流程中不使用快进合并。我注意到在 git 本身中,可以将其包含在他们的 .gitconfig 中以默认关闭快速转发:

[merge]
    ff = false

不过,TortoiseGit 似乎对此没有任何作用。当我去合并时, "No Fast Forward" 复选框仍未选中。当我执行合并时,我看到它仍然调用命令 git.exe merge Branch_test,没有 --no-ff 开关。

如何让它默认关闭?

啊哈!

设置

[merge]
    ff = false 

在配置文件中 确实 在使用 TortoiseGit 合并时阻止快速转发,因为这会改变 git.exe 本身的行为。

添加该选项后,合并对话框中的 "No Fast Forward" 复选框 不会执行任何操作! 相反,所有合并都将 "no fast forward" 合并。

这有点笨拙,因为这意味着我在 TortoiseGit 对话框中没有选项来覆盖默认值(即,在合并命令上使用 --ff 开关)。尽管如此,它还是能满足我的需求。