可能不向非相关人员显示源代码分支? [英] possible to not display soure code branch to non-related people?

查看:95
本文介绍了可能不向非相关人员显示源代码分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户正在使用TFS git和TFS 2017 update1。他们建立了许多分支机构。一旦没有使用分支机构。他们想让它对公众不可见,这样只有管理员才能看到它。它是为了将来的审计使用。我们将分支安全性设置为禁用。然而,
,分支仍然显示为公共,唯一的影响是它们无法保存更新到分支。所以我的问题是,是否可以将"读取"或"显示"安全性设置为分支?这样只有有效的用户才能看到这个分支。谢谢。

My customer is using TFS git with TFS 2017 update1. they set up many branches. once the branches is not used. they want to make it invisible to public so that only administrator can see it. it is for future audit use. and we set the branch security to disable. however, the branch is still displayed to public, the only effect it that they can't save updates to the branch. so my question is that whether it is possible to set 'read' or 'display' security to branch? so that only valid users can see this branch. thanks.

推荐答案

您好Zhuang0123,

Hi Zhuang0123,

您无法阻止用户查看分支,因为没有诸如"读取"之类的权限。或"查看"。唯一的方法是通过将Contribute设置为拒绝来阻止贡献。在此处引用Git的权限( https://www.visualstudio.com/en -us /文档/ GIT中/分支权限)。
但是如果您使用的是TFVC,则可以将其隐藏起来,因为它具有读取权限设置( https://www.visualstudio.com/en-us/docs/setup-admin/permissions#tfvc-permissions-object-level )。

You cannot prevent user from viewing the branch since there is not a permission such as "Read" or "View". Only way is preventing contribution by setting Contribute to deny. Refer permissions for Git here (https://www.visualstudio.com/en-us/docs/git/branch-permissions). But if you are using TFVC you can hide it from users since it has read permission setting (https://www.visualstudio.com/en-us/docs/setup-admin/permissions#tfvc-permissions-object-level).

您可以在此处添加请求此功能的用户语音,MSFT将考虑实施此功能

https://visualstudio.uservoice.com/forums/330519-team-services

You can add a user voice requesting this feature here and MSFT will consider implementing it https://visualstudio.uservoice.com/forums/330519-team-services.

干杯!

Chaminda


这篇关于可能不向非相关人员显示源代码分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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