Automated CI tool merges fixes from release
to master
. But some commits from release branch should be ignored.
Let's consider the following example:
Release branch contains two fixes: fix-1
should be ignored and fix-2
should be merged to master
.
base ----------- merge-fix-2 - master
\ /
fix-1 --- fix-2 --- release
With this configuration merge of fix-2
also includes fix-1
changes.
To avoid this I need empty merge-commit (ignore-fix-1
), just for notify Git that fix-1
has been already merged and these changes should be ignored in upcoming merges:
base -- ignore-fix-1 -- merge-fix-2 -- master
\ / /
fix-1 ----- fix-2 ---- release
The question is: how to do that ignore-fix-1
empty commit?