Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,149
Community Members
 
Community Events
168
Community Groups

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

Atlassian Community Events