Two configurations that can help you:
merge.ff
(From git merge man page ): if set to false , this variable tells Git to create an additional commit merge in this case (equivalent to providing the --no-ff option from the command line).
pull.ff
(from git config man page )
Setting pull.ff to true will support the default behavior when Git does not create an additional join when combining a commit that is a descendant of the current commit.
To test: pull.ff takes precedence over merge.ff ?
git config pull.ff only git config merge.ff false
As Kelvin mentioned the answer and confirmed by git-pull.sh , ' only ' is a value that is not used, not < true .
source share