Azure DevOps:为所有项目中的所有存储库设置Git分支权限 [英] Azure DevOps: Set Git branch permission for all repos in all projects

查看:409
本文介绍了Azure DevOps:为所有项目中的所有存储库设置Git分支权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为所有当前和将来的存储库和项目中的所有当前和将来的分支在Azure DevOps中为组设置强制推送"权限?

Is there a way to set the "Force Push" permission for a group in Azure DevOps for all current and future branches in all current and future repos and projects?

我们目前大约有50个项目,每个仓库有一个仓库,每个分支有多个分支,要在每个分支的每个存储库中设置权限会很麻烦,而且容易出错.

We currently have about 50 projects with one repo and several branches each and it would be a lot of manual work and error prone to set the permission in every single branch for every repository.

推荐答案

如果导航到项目设置,然后在左窗格中选择Repositories,则可以在树视图中选择Git repositories根.此处明确定义的任何权限都将被所有现有和新的存储库和分支继承:

If you navigate to the project settings, then select Repositories in the left pane, you can select the Git repositories root in the tree view. Any permission explicitly defined here is inherited by all existing and new repositories and branches:

这篇关于Azure DevOps:为所有项目中的所有存储库设置Git分支权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆