While publishing the code to GIT, how to resolve the Error "pre-receive hook declined" thrown?
Error Description: Pre- Receive Hook Declined
Resolution: This error originates from Git remote branch, indicating that it is rejecting the commit performed. Perform the below steps
- Change parameters on the repository
- Go to GitLab->Settings->Repository->Protected Branches
- Unprotect the branch.
Event Viewer Log from the machine (Event Viewer -> Windows Logs -> Application) will be helpful to debug, if further error exists.
Read more on StackOverflow .