Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`git flow release finish` non-interactively

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.

like image 655
nicholaides Avatar asked Jan 25 '13 22:01

nicholaides


1 Answers

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.

like image 192
Peter van der Does Avatar answered Sep 26 '22 05:09

Peter van der Does