`git flow release finish` non-interactively

nicholaides picture nicholaides · Jan 25, 2013 · Viewed 8.4k times · Source

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.

The goal of course is to be able to script this in such a way that doesn't require interaction.

Answer

Peter van der Does picture Peter van der Does · Jan 28, 2013

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.