Hide a branch in TFS

338 Views Asked by At

What I did, is that I have created a group with few members and assigned it to a branch. When I login with a user from the restricted group, then I don't see any branches. Then, added that group to the "Readers" group. Now I see all the branches in the project.

Is there a way to hide all other branches and show only the one that has that group?

Thank you

3

There are 3 best solutions below

0
On BEST ANSWER

Thank you all for your answers! I solved it by creating a new project with readonly permissions. So every time there's a change in the main project a task will be triggered in TFS to push the changes to the other project. That was the only option for me.

0
On

In TFVC you can create a new folder in the root and move the restricted branches to it. Then set the Read permission to all root folders (except the new folder) to DENY for the restricted group.

enter image description here

In this case, the restricted group will see only the new folder and its content.

4
On

Git does not support read/contribute permissions on branches. TFVC - yes.

Consider using Forks.