我如何只允许某些人在Visual Studio Online中提交? [英] How can I allow only certain people to commit in Visual Studio Online?

查看:113
本文介绍了我如何只允许某些人在Visual Studio Online中提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio Online帐户和多个项目。



在每个项目中,我想选择谁可以提交到不同的分支。例如,我希望首席开发者成为唯一可以提交'主'的人,然后启动CI构建。



我想确保,当我使用自由职业者时,他们无法在没有代码审查和测试的情况下合并到主或暂存中。

解决方案

Visual Studio Online具有一组您可以在Git repo&分支级别。




  • 管理 - 回购&分行

  • 分行创作

  • 贡献 - 回购&分支

  • 笔记管理

  • 阅读

  • 强制推送(重写和销毁历史记录) - 回购&分行

  • 标签创建



您可以在团队项目中创建自定义安全组,他们的权限。您想要的内置安全组(例如贡献者)确保不会为用户提供额外的权限,因此请确保您查看它更广泛。例如,您可以开始从参与者安全组中删除权限,并开始向其他自定义安全组添加权限。主要的是你可以设置权限来实现你的目标。



以下是关于 http://msdn.microsoft.com/en-us/library/ms252587.aspx#Git 。一般来说,向上看一下TFS的安全概况。


I have a Visual Studio Online account and multiple projects.

On each project I would like to choose who can commit into different branches. For example, I would like the lead developer to be the only person who can commit to 'master' which will then kick off a CI build.

I want to ensure that, when I'm using freelancers, that they can't merge into the 'master' or 'staging' without code review and testing.

解决方案

Visual Studio Online has a set of granular permissions that you are able to set at the Git repo & branch level.

  • Administer - repo & branch
  • Branch Creation
  • Contribute - repo & branch
  • Note Management
  • Read
  • Force Push (rewrite and destroy history) - repo & branch
  • Tag Creation

You can create custom security groups within your team projects and then assign them permissions. There are built-in security groups that you want (like Contributors) to ensure don't provide additional permissions to users than what you want for them so make sure that you look at it more broadly. For example, you can begin to remove permissions from the Contributors security group and begin adding permissions to other custom security groups. The main thing is that you can setup permissions to meet your goals.

Here's some more information about the permissions available for Git repositories in http://msdn.microsoft.com/en-us/library/ms252587.aspx#Git. Look up towards the top for an overview of security in TFS in general.

这篇关于我如何只允许某些人在Visual Studio Online中提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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