The question is about some edge case of git-flow methodology
I have some kind of typical git-flow history like this:
o---o---o---o [release-3.5.0]
/
----o---o---o---o---o [development]
Git-flow told us to merge release-3.5.0 branch into development then release is ready. So, eventually we'll get ALL changes, made at release branch into development branch.
o---o---o---o
/ \
----o---o---o---o---o [development]
Now imagine, we have a commit 'X' on release branch what we DO NOT want at development branch, for example it is some kind of hack/hotfix or else which is already fixed in development in more sane way (i.e. by commit Y)
o---X---o---o [release-3.5.0]
/
----o---o---o---Y---o [development]
So, the main question is how to deal with such situations? How to prevent this commit (or commits) from getting back into development?