Git push error pre-receive hook declined

前端 未结 14 1171
眼角桃花
眼角桃花 2020-11-28 03:06

I have run gitlabhq rails server on virtual machine, following 1-6 steps from this tutorial https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md a

14条回答
  •  [愿得一人]
    2020-11-28 03:41

    Might not be the case, but this was the solution to my "pre-receive hook declined" error:

    There are some repositories that only allow modifications through Pull Request. This means that you have to

    1. Create a new branch taking as base the branch that you want to push your changes to.
    2. Commit and push your changes to the new branch.
    3. Open a Pull Request to merge your branch with the original one.

提交回复
热议问题