Recently we started working with the different branches for development, release and main. It is desirable that in principle (with the exception of hot fixes) all developments are carried out in the development branch.
Currently it is not possible to protect a branch against "accidental" mutating. Naturally, the developer should pay attention to which branch he makes adjustments in, but a mistake is easily made. And this means rolling back that branch and re-entering the work or a special merge action.
Of course we can introduce the "pastry scheme" for those who accidentally do this. But it would be more useful if we could secure the branch, for example by showing a notification when the branch is opened.
Is it possible to make such a adjustable warning for branches?