java开发中,idea加git,合并分支的时候怎么禁用fast-forward,就是保留被合并分支

也就是命令行界面的
git merge --no-ff -m "merge with no-ff" dev
怎么实现
idea里面的合并是直接把master指向dev的分支(假设现在合并的分支是dev)
。。。。。。。
解决了,右键目录中,git下选择合并可以有详细的设置

如果想对特定分支禁用fast forward:

 git config branch.master.mergeoptions  "--no-ff"

如果想对所有分支禁用fast forward:

 git config merge.ff false
git config merge.ff false//禁用所有分支(fast foward)

git config branch.master.mergeoptions "--no-ff"//禁用特定分支