Configure git-flow (avh) for gitlab
git-flow (avh) deletes branches on
finish automatically by default. This includes remote branches. Gitlab will mark a Merge Request as closed if its merged into target branch but only if source branch keeps intact. So if you close a feature locally via
git flow feature finish xyz gitlab will be confused.
To prevent that
finish commands support
--keepremote. It's possible to switch that permanently on via
git config --add gitflow.<type>.finish.keepremote true.
This is just a short script doing this for