How to prevent git branch from further commits / merges etc.

We develop using gitand gitblit. When we finish development on any branch, it may be that the developer is still making a mistake on this branch, which should not be.

How to prevent a branch from further fixing and merging fixes? Is there any way to allow permissions on a branch?

+4
source share
1 answer

Gitblit (since version 1.8.0) does not directly support discrete branch permissions. You can write a Groovy hook ( example ) or a custom plugin ( example ) to accomplish this.

+2
source

Source: https://habr.com/ru/post/1648250/


All Articles