凹凸棒石可以防止分支删除吗? [英] Can gitolite prevent branch deletes?
本文介绍了凹凸棒石可以防止分支删除吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以设置gitolite acls以允许用户读取,写入和推送,但不能删除分支?
Is it possible to set up gitolite acls to allow a user to read, write, and push, but not to delete branches?
推荐答案
您应该可以将所有存储库用作一般规则:
You should be able to use as a general rule for all repositories:
repo @all
RWCD dummy-branch = foo
"D
"是删除" 许可类型 ,这将授权删除dummy-branch
,但会使您的所有现有 RW+
规则拒绝删除(因为它们没有'D
')
The 'D
' is a "deletion" type of permission, which will authorize the deletion of a dummy-branch
, but will make all your existing RW+
rule deny deletion (because they don't have a 'D
')
这篇关于凹凸棒石可以防止分支删除吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文