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

后端 未结 6 1237
悲&欢浪女
悲&欢浪女 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条回答
  •  旧时难觅i
    2021-02-05 02:05

    What worked for me was:

    1. Created a new branch locally
    2. Bitbucket -> Settings -> Repository details = changed default branch (e.g to prod)
    3. Bitbucket -> Branches -> delete master branch (you can do this without step 2)
    4. Then push your locally created branch (e.g master)
    5. Bitbucket -> Settings -> Repository details = changed default branch (e.g to master)

提交回复
热议问题