Vadim Visnevski
Vadim Visnevski

Reputation: 35

Hide a branch in TFS

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

Upvotes: -1

Views: 385

Answers (3)

Vadim Visnevski
Vadim Visnevski

Reputation: 35

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.

Upvotes: 0

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16038

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.

Upvotes: 0

Shamrai Aleksander
Shamrai Aleksander

Reputation: 16038

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

Consider using Forks.

Upvotes: 1

Related Questions