We have a git workflow which is mostly based on rebasing local topic branches, as to achieve as linear a commit tree as possible. However sometimes it is necessary to merge and we do allow that.
How can I set up my git server to warn the user, when they try to push a merge commit to the server? I would like to just warn the user and ask them to confirm that this is what they really want to do.