Restricted Branch - documents to be hidden for viewers

Hi GitHub Support,

I’m currently using my company’s enterprise GitHub and have a quick question. We have three roles in GitHub: read-only, developer, build manager. However it’s come to our attention that we can’t show some of our documents to the read-only viewers. Is there anyway we can do that? I was thinking about having a restricted branch where we put these docs so that they don’t get shown to the viewers. Would it be possible? My colleague told me it’s not possible. Appreciate your confirm and advice.

Many thanks,
Christine

Hi @christineson :wave:

Welcome to the community!
If I understand your concern here correctly, you want to keep certain documents out of view from your read-only members.
These would need to be in a different repository that those user do not have access to. There isn’t functionality for hiding branches from teams.

We’re always working to improve GitHub and the GitHub Support Community, and we consider every suggestion we receive.
You can submit this through our official product feedback form.