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

Unable to create branch in Bitbucket

Edited

Hi All,

When the user is trying to create a branch, He is getting the below error,

 

remote: Check your branch permissions configuration with the project administrator.

 

remote: ----------------------------------------------------

 

remote:

 

remote:

 

To https://bitbucket.XXXXX.in/scm/p11270/XXXX_mas_rest_services.git

 

! [remote rejected] feature/esh_resendEmail -> feature/esh_resendEmail (pre-receive hook declined)

 

error: failed to push some refs to 'https://bitbucket.XXXX.in/scm/p11270/XXXXX_mas_rest_services.git'

 

Thanks,

Prabhu Ch

1 answer

Hello @Prabhu Chilukuri , 

 

Which permission the user have in the repositaries where he is trying to create a branch? 

Most of the time it just a problem of permission, for him to be able to create a branch he need minimum of Write permission, read permission doesn't let him create a branch or anything else. 

 

Go to Bitbucket --> Select the repositary --> Repositary Setting --> User and group access 

--> You can check which permission he have

 

Regards,

JH

Hi Joseph,

I have already provided write access to the user

 

Do you have any idea about below error,

 

! [remote rejected] feature/esh_resendEmail -> feature/esh_resendEmail (pre-receive hook declined)

You should ask the manager in charge of the Repo "feature/esh_resendEmail"

It can come from multiple problem, but from my perspective 

 

They are providing a lot of information on this page :

https://stackoverflow.com/questions/7986139/git-error-when-trying-to-push-pre-receive-hook-declined

 

Regards,

JH

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,481 views 4 7
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