Hello, we want to have a merge strategy our way, but we can't get it straight.
In the beginning, there is a master from the master we create a branch stage and from stage branch we create dev
So far, so good.
Then we start developing in the dev and at some moment we want to test on our test environment we want to go to the stage, BUT!! When we create a pull request, the master is offered as a base branch, NOT STAGE!
And what is even crazier when we want to create a pull request from stage to master as a base branch where we should create a pull request is offered dev!!
Please help us to solve this issue.
Thx
Patrik
The default branch used when creating a pull request is determined by the default branch you have on your repository. If you go to your Repository settings > Branching model and from here you can set your default branch and your production branch. By default master will be your default branch, and it sounds like dev is set as your production branch. Have a look at Branch a repository for more information.
Default branch is not set on "Branching model" on Bitbucket Cloud.
It's set on "Repository settings -> Repository details -> Advanced -> Main branch"
(And for anyone on Bitbucket Server rather than Bitbucket Cloud, it's also on "Repository details" but under "Default branch").
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is how I have it:
Then here are screenshots from branches:
Even I try to change it in the bitbucket, it does not allow it to me!!!
Please provide a fix for this. We need to have the merging strategy right!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In order to change the branching model you have to have repository admin permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Mikael Sandberg i‘m the admin and owner of the repo. Bitbucket change it, even when I do refresh, it‘s changed, then when I move to different branch and back, it‘s again the old one!!! Even git rebase is somehow ignored from bitbucket! Thx for help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.