Bitbucket branch management

ε祈祈猫儿з 提交于 2019-12-23 02:09:13

问题


Is this possible with BitBucket or GitHub to restrict the user for any particular branch except "master"? I only want to share "master" branch with others and develop branch should be keep private with me and my developers. So no one can even "checkout" develop branch if permission is not given.

Any possibility?


回答1:


You can restrict in "writing" access (push) with BitBucket or GitHub, or with a git server using gitolite.

But you cannot restrict in "reading" access: if you can clone part of a repo, you can clone the all repo.

develop branch should be keep private with me and my developers.

That means having those branch in a separate repo: you can restrict the visibility of a all repo (for instance: a private repo with BitBucket)



来源:https://stackoverflow.com/questions/33580913/bitbucket-branch-management

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!