How do I make git merge’s default be –no-ff –no-commit?

Put this in $HOME/.gitconfig:

[merge]
    ff = no
    commit = no

You can use git-config to do this:

  git config --global merge.commit no
  git config --global merge.ff no

Leave a Comment