I am trying to set git merge --no-ff --no-commit
as a default behaviour for merge.
Now I have read below questions:
How do I make git merge's default be --no-ff --no-commit?
Git: Default "no commit" merge behaviour for all branches?
Following those answers, I added below to global config:
[merge]
tool = winmerge
ff = false
commit = false
After adding new configurations --no-ff works correctly, but it still automatically commits. Then I searched for tried merge-documentation page:
https://git-scm.com/docs/merge-config/2.18.0
There is merge.ff entry but not merge.commit. I'm currently using git version 2.29.2.windows.2.
I added --no-commit to local config mergeoptions for a workaround:
[branch "master"]
mergeoptions = --no-commit
It works for now, but I would like to have that behaviour default for all projects and branches on my pc.
So my questions are below:
- Does merge.commit config really exist? If it is version problem, which version would allow this?
- If merge.commit is not available, what would be the alternative?