I'd like to mark a branch I created in my repo as non-mergeable.
I'm not using CI or Jenkins as described in this question. I just need to set this to avoid accidental merge of "experimental" features in the master
branch.
Is this possible?
I'd like to mark a branch I created in my repo as non-mergeable.
I'm not using CI or Jenkins as described in this question. I just need to set this to avoid accidental merge of "experimental" features in the master
branch.
Is this possible?
You could check out the protected branches in GitHub
That would avoid any merge unless a status check or a PR review is provided.
The alternative, if you manage your own central Git server, on premise, would be to add hooks in order to prevent merges.
See for instance "pre-receive
hook on server-side that refuse any push to master which has any non-linear history"