Unable to prevent push to a repo that is protected by the permission to push by mainternairs only
I have the latest version of Gitlab 11.1.4 and
- I have 3 repositories ( repo1, repo2, repo3 ) protected by "group1".
- I am a user with "developer" access to the group "group1"
- I want to prevent push and merges to repo2 and repo3.
- I ( as root) went into the settings->repository->Protected branches for the project repo2 and chose "master" branch and a couple of others to be allowed to be merged or pushed to by maintainers only.
- I ( as a developer) make a change to a file in repo2, commit it and when I push it. It gets pushed and I can see it in the activity for repo2.
What am I doing wrong? What is the right way to prevent pushes and merges to this repo?
Thanks for your help.