GitLab: Master [remote rejected]: You are not allowed to push code to protected branches

Tag(s):

Issue

GitLab: Master [remote rejected]: 
 
pre-receive hook declined
GitLab: You are not allowed to push code to protected branches on this project.

Solution:

  1. Open project.
  2. Open gear icon.
  3. Select Protected branches.
  4. Click on Unprotect.