remote: GitLab: You are not allowed to force push code to a protected branch on this project.
I'm experiencing an annoying problem.
Just created a new Project, I'm a Master-Member, Master-Branch is protected with Masters are allowed to Merge & Push.
But I get on git push:
$ git push ... remote: GitLab: You are not allowed to force push code to a protected branch on this project. ...
Just unprotecting the Master-Branch allows me to push. The very strange Part is: The Init Commit works, but any further commit is rejected.
Any Hints what might be wrong?
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
=> Everything is fine
How to reproduce:
- Create new Project
- Init Commit
- Everything else is rejected by the Protected Branch Check