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

前端 未结 4 1054
一个人的身影
一个人的身影 2020-12-04 07:08

Company policy is to use --no-ff for merge commits. I personally like to adjust merge log messages so I use --no-commit. Plus I like to actually co

4条回答
  •  渐次进展
    2020-12-04 07:54

    According to manual, you should use

    $ git config [--global] merge.ff false
    

    to set no-fast-forward option by default for all branches with git-config utility.

提交回复
热议问题