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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -