Why I am still able to push commits to a protected branch

Hi there,

I work in some repositories within a quite big team. We have some branches protected with the options in the screenshot.

However, when I commit some local work to that protected branch and I push it, no error is gotten and, if I check github, the commit has been committed (without a Pull Request).

Note: I have master permissions on the repository.

Any idea?

If you own or admin the repo you can still push directly.

You’ve only set that PRs require review. So if you open a PR it’ll require review.

If you want to prevent yourself from pushing directly you’ll need to “Include administrators” and/or “Restrict who can push to matching branches”.