Skip to content
Discussion options

You must be logged in to vote

Hey @rcampos87,
Yes, this is expected behaviour. Although rulesets and classic branch protections seem similar, they are not identical in how they enforce rules.

Key difference:

  • Classic branch protection allows some exceptions (like admins can push directly if "Include administrators" is not checked).
  • Branch rulesets apply rules more strictly and consistently, often blocking direct pushes even if you could push under classic protections.
  • If you set up a ruleset, direct pushes may be rejected if the ruleset doesn’t explicitly allow them, regardless of admin status or previous exceptions.

For more details, see: Docs

If you want behaviour more like classic protection, you may need to adjus…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ronaldorcampos
Comment options

@Leorev01
Comment options

@ronaldorcampos
Comment options

@Leorev01
Comment options

Answer selected by ronaldorcampos
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question Ask and answer questions about GitHub features and usage
4 participants