`git flow release finish` non-interactively

前端 未结 7 579
一个人的身影
一个人的身影 2021-02-05 04:23

How I can use git flow release finish in a manner that doesn\'t ask for merge commit messages? The -m flag doesn\'t provide this, as I expected.

<
7条回答
  •  不思量自难忘°
    2021-02-05 04:39

    You can set the environment variable

    export GIT_MERGE_AUTOEDIT=no
    
    git flow release finish -m 'Merge Message' release_branch_name
    
    unset GIT_MERGE_AUTOEDIT
    

    It won't invoke the editor for when you merge.

    If you switch to my fork git-flow AVH Edition you can set this option to only work for when you use git-flow.

提交回复
热议问题