Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A gitlab feature I miss on Github is "protected branches" and being able to add contributors that can only push to unprotected branches. This way you can give people access to the main repo while still being able to check code before it goes into master


You can do this now. $work uses github and has it so that a bit of code has to have be reviewed before it can be merged to master.


You can do this on Github. It's even called the same. Go to your repo -> settings -> branches and it's the 2nd item (Protected branched).

I use this feature at work so I can confirm it behaves as expected.


Oh, great! I tried it a while ago and the setting was nowhere to be found!


You can do this on Github with custom hooks etc. But yes.


That's potentially one way of doing it but Github does also have a specific feature for doing this literally called "Protected branches":

https://github.com/blog/2051-protected-branches-and-required...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: