GitHub Branch Policies? #21921
Answered
by
ThirdEyeRose
ryhsh72
asked this question in
New to GitHub
|
Hi everyone! I’m trying to see if GitHub has a feature similar to VSTS (Microsoft) where you can institute branch policies , or requirements that prevent direct pushing of commits to a particular branch. In this case, users would have to make a pull-request in order to push code into its upstream. Is there any option like that? |
Answered by
ThirdEyeRose
Feb 14, 2018
Replies: 3 comments
|
Hi @ryhsh72, Yes, GitHub does have something like that! You can implement this sort or restriction through GitHub’s protected branches. You can even require that all pull requests require reviews before they get merged into the protected branch. Does that help? Thanks! |
0 replies
|
That is exactly what I needed, thank you @that-pat! 😃 |
0 replies
|
You’re very welcome! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ryhsh72,
Yes, GitHub does have something like that! You can implement this sort or restriction through GitHub’s protected branches. You can even require that all pull requests require reviews before they get merged into the protected branch.
Does that help?
Thanks!