Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to merge code to protected master branch directly

Bitbucket have the way to protected branches, but it accept only one way to merge via pull request.

It should fine except if it has code conflict and cannot fix by itslef. It needs to creat a temporary branch that checkout form master then merge develop branch. Then fix conflict and pull request again from this branch.

 

I have 2 path

features to develop

develop to master

That's mean we do twice and always got a conflict

Anyone please suggest to me?

 

1 answer

1 accepted

0 votes
Answer accepted

Hello,

If an administrator of the repository has set up a branch permission for master that allows users to only merge via pull request (and no one pushing directly to the branch), then this is the only way that users can merge to master.

If you would like to be able to push directly to master, you will need to speak with one of the administrators of the repository, and ask them if they could allow your Bitbucket user to push directly to master branch.

It is possible to specify in the branch restrictions that certain users can push directly to master branch, but this will need to be set by one of the repo admins.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,762 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you