Since today (2025-jan-29), I start receiving the error:
remote: Permission denied to update branch develop
! [remote rejected] develop -> develop (pre-receive hook declined) error: failed to push some refs to 'https://bitbucket.org/{repository path}'.
I found out, that I had defined some "branch restrictions" on my "develop and release" branches, and only allowed my user to modify those branches.
This never happened before.
In all my "environments" and tools (either it is "smartgit", "CLion" or command line "git"), I'm using an "access token" when I'm pushing/pulling, so as long as I worked on other branches there were no issues (including the develop and release branches).
In order to workaround this issue, I momentarily disable the branch restrictions, and re-assign them after I push the change.
How can I troubleshoot this behavior, and what should I setup so my "Bitbucket User" will be the one to push the changes, hence it won't have restrictions.
edit:
Here are the restrictions I defined:
Thanks
Sa'ar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.