git - Prevent pushing to master on GitHub? -
github allows configure repository users can't force push master, there way prevent pushing master entirely? i'm hoping make way of adding commits master through github pull request ui.
you can enable branch restrictions , decide (in terms of users , teams of organization) allowed push.
https://help.github.com/articles/about-branch-restrictions/
«note: if "include administrators" checked , you've enabled required status checks on branch , fail, attempt push changes base branch fail, regardless of user or team's permission status.»
Comments
Post a Comment