简体   繁体   English

限制用户访问 GitHub 存储库中的特定分支

[英]Restriction user access on a particular branch in GitHub Respository

I have a private repository where there are multiple branches and we are using continuous deployment on a specific master branch.我有一个私有存储库,其中有多个分支,我们在特定的主分支上使用持续部署。 I have couple of resources who works on this repository and have been added a collaborate with Write Access on this specific repository.我有几个资源在这个存储库上工作,并且已经添加了一个与这个特定存储库上的写访问权限的协作。 I would like those user not to be able to access or use one specific branch that is master but can still create different feature branches and work as usual to other branches and also create there own from this repository.我希望这些用户不能访问或使用一个特定的主分支,但仍然可以创建不同的功能分支并像往常一样在其他分支上工作,也可以从该存储库创建自己的分支。

I want to just restrict one specific master branch to just have access to one user and not all who are added as a collaborator with write access to this repository.我只想限制一个特定的 master 分支只能访问一个用户,而不是所有被添加为对该存储库具有写入权限的协作者。

Any help is appreciated.任何帮助表示赞赏。

Regards问候

Found a Branch protection option on GitHub under Setting-->Branches which is what i was looking to do.在 GitHub 上的“设置”->“分支”下找到了一个分支保护选项,这正是我想要做的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM