我想将我在仓库中创建的分支标记为不可合并。
我没有使用this question中所述的CI或Jenkins。我只需要设置此值,以避免在master
分支中意外合并“实验”功能。
这可能吗?
您可以签出protected branches in GitHub
除非提供status check或PR评论,否则这将避免任何合并。
如果在前提条件下管理自己的中央Git服务器,则替代方法是添加钩子以防止合并。
例如查看“ pre-receive
hook on server-side that refuse any push to master which has any non-linear history”