2022-06-18

Disable possibility to merge a branch into an other branch

Is it possible to disable possibility to merge one branch into another? For example, I have a branch named develop and feature branches named A, B and C.

I want to make impossible to merge develop into A, or into B or into C:

git checkout A
git merge develop 

should return an error.



No comments:

Post a Comment