[remote rejected] master -> master (pre-receive hook declined)

We are getting below error while pushing the changes into Bitbucket Respository.

[remote rejected] master -> master (pre-receive hook declined) 

We are pushing changes using service account and this account has exemption to Push the changes without pull request.

1 answer

You'll probably need to provide more information for anyone to be able to help you. "pre-receive hook declined" means there is some hook (possibly from a BBS plugin, possibly a hook from core) that has explicitly decided your push is not allowed. It's pretty generic and doesn't tell us which one prevented it or why. The hooks usually print a message to the Git client with a reason.

The message in the Git client should generally include more information, but worst case you might want to look at your server logs to see if there is anything logged when this happens.

If you can't find help here, I'd suggest heading to https://support.atlassian.com and asking our Support Engineers for assistance. They will ask you to generate a Support Zip of your instance (logs and configuration information) and will be able to diagnose the problem a bit better with that info.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,768 views 1 5
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