Bitbucket failed to push branch

Eric Chan I'm New Here Dec 21, 2017

I am currently using Bitbucket server 4.11 and I encounter some push operation errors. I have set up branch permission to block any rewrite history operation. However, when I push a local develop branch to Bitbucket, it returns error and not allow me to do pushing.  The log shows "Rewrite history is not allowed for branch refs/heads/develop. Check your branch permissions configuration with the project administrator." However, when I do the same operation in another Bitbucket server project with the same setting and same branch permission, it succeeds. Please advise a solution to solve this error. Thank you.

1 answer

0 vote

Hello @Eric Chan,

As far as I can understand, you don't seem to be facing this issue in any other projects, so maybe comparing the project permissions between the one that does not work and the one that works can give you a clue of what is going on?

We do realize that you have checked branch permissions, but what about repository-level permissions or project-level permissions? Have you checked these as well?

What happens if you try to push to a different branch on the same repository?

In this Community thread the problem was solved by upgrading Bitbucket Server to 5.2. As you're running a prior version, can you try upgrading Bitbucket Server to the latest version and see if it works for you as well?

In addition to that, you mentioned you got a message about permissions in the logs. Can you paste the entire stacktrace here, obfuscating sensitive data? Maybe this can also be helpful.

Cheers,

Felipe

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

709 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot