Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upProtected branches #267
Comments
dcousens
added
the
question
label
Sep 21, 2015
This comment has been minimized.
This comment has been minimized.
|
Protected branches won't prevent people from directly committing to |
This comment has been minimized.
This comment has been minimized.
|
@rstacruz
edit: as pointed out below, it does enforce the behaviour I want, provided you have required status checks. |
dcousens
closed this
Sep 21, 2015
This comment has been minimized.
This comment has been minimized.
|
Its probably still a good idea turn on protection to disallow |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Ah, so the status checks option is close to what @dcousens was asking for? If I'm reading it right, then it means everything must be pushed to a separate branch first to allow checks to run... |
This comment has been minimized.
This comment has been minimized.
|
Yep, seems that this does what @dcousens wants.
Happy to try it out for a while. I like the idea that it increases visibility of changes by making it impossible to sneak in commits without people getting email notifications. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Yeah, lets try it! |
This comment has been minimized.
This comment has been minimized.
|
@rstacruz right, so it seems that specific option allows you to push to master unless you have status checks. |
This comment has been minimized.
This comment has been minimized.
|
@feross for it to align with your idea that those with access are still free to make changes, it just means they can self-merge. |
This comment has been minimized.
This comment has been minimized.
|
Yep, definite win for visibility.
|

dcousens commentedSep 21, 2015
@feross any chance we could protect master such that PRs are still the norm?
I'd rather not keep up with the commit log directly if possible.