Git push error pre-receive hook declined

前端 未结 14 1206
眼角桃花
眼角桃花 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:43

    Despite the question is specific to gitlab, but similar errors can happen on github, depending how it is set up (usually Github Enterprise).

    You need to familiarize yourself with the following concepts:

    • pre-receive hooks
    • organization webhooks
    • Webhooks

    Webhooks are more commonly understood than other two items.

    The Pre-receive hooks

    are scripts that run on the GitHub Enterprise server to enforce policy. When a push occurs, each script runs in an isolated environment to determine whether the push is accepted or rejected.

    Organization webhooks:

    Webhook events are also sent from your repository to your "organization webhooks". more info.

    These are set up in your github enterprise. They are specific to the version of the github enterprise. You may have no visibility because of your access limitations (developer, maintainer, admin, etc).

提交回复
热议问题