Error on git push = ! [remote rejected] master -> master (pre-receive hook declined)

后端 未结 6 1208
悲&欢浪女
悲&欢浪女 2021-02-05 01:26

I think, it\'s a different issue than this(remote rejected master -> master (pre-receive hook declined)), and many people are facing same issue, So I am posting a new here.

6条回答
  •  抹茶落季
    2021-02-05 02:09

    It looks like the branch management (one of the admin settings) in bitbucket has been configured to only allow certain people to push directly to master.

    Try creating a branch - git checkout -b test, create your test commit and push git push origin test:test. You can always cleanly delete this branch once you have completed the test.

    The other option (probably best agreeing with whoever set this up) is you go to bitbucket and head to admin, branch management and remove master be to limited. cf - https://confluence.atlassian.com/display/BITBUCKET/Branch+management

提交回复
热议问题