1

We are using bitbucket to maintain our git repository and branches. We want to implement following branching policies . Is it possible to do this in bitbucket?? Any plugin or any code??

We want following restrictions in GIT –

  1. Feature & Release branches must be created from Dev Branch
  2. Hot Fix branch must be created from Master
  3. Bug Fix branch must be created from Release branch
  4. Any Merge in Dev branch/Release branch should happen using Pull request only.
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Shahbaz M
  • 11
  • 2

1 Answers1

2

You have branch permissions on bitbucket:

  • Limit pushes to specifics users and groups
  • Prevent deletion of some branches
  • Prevent history re-write

But you don't have "a branch must be created from another".

For that, you would need to define your own repository hook:

That hook would use git merge-base or, if BitBucket has reflogs, git merge-base --fork-point.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250