Muzammil
Muzammil

Reputation: 1539

Bitbucket branch management

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?

Upvotes: 1

Views: 239

Answers (1)

VonC
VonC

Reputation: 1325337

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)

Upvotes: 1

Related Questions