How to resolve the Error Pre-Receive Hook Declined, when publishing the code to GIT from UiPath Studio
Issue Description
When publishing the code from UiPath Studio to Git, the "Pre-Receive Hook Declined" error is encountered.
The error message appears as shown in the screenshot below:
Resolution
This error originates from the Git remote branch, indicating that it is rejecting the commit performed. The following steps needs to be performed to resolve the issue:
- Go to GitLab
- Settings
- Repository
- Protected Branches
- Unprotect the branch.
