TFSSecurity 更改 git 分支权限 [英] TFSSecurity to change git branch permissions
本文介绍了TFSSecurity 更改 git 分支权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在实施 TFS 安全命令以将 git master 分支访问控制权限更改为贡献字段的拒绝.
I am implementing the TFS Security commands to change a git master branch acess control permissions to DENY for contribute field.
下面是我使用的命令:
/tfssecurity.exe /a+ GitRepositories repositories/[543473b8-6186-42b3-bdab-b22bc44cc8f8/] GenericContribute n:'"[Projectname]\TFSGroup'" DENY /collection:CollectionURL"
我正在为此项目使用 powershell 3.0,但出现以下错误
I am using powershell 3.0 for this project and I get below error
错误:安全命名空间 GitRepositories 不存在.
Error: The security namespace GitRepositories does not exist.
有人可以帮我解决这个问题吗?
Could someone help me with this?
推荐答案
您在Git 存储库"名称空间中遗漏了一个空格.尝试以下操作:
You missed a blank space in "Git Repositories" name space. Try following:
tfssecurity.exe /a+ "Git Repositories"
这篇关于TFSSecurity 更改 git 分支权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文