How to protect “master” in github?
问题 I have a few contributors in my github project. I want to allow only one of them to "push" to master. And this guy is not me (the owner of the repository). Is it possible to do? 回答1: Back then, when this question was posted, GitHub didn't allow you to specify access privileges on a branch level. You can only do it on a repository level. So what you are requesting wasn't possible. If you want to work around this limitation, I personally see two options: you could use some kind of commit hooks,